1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00

LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR()

This commit is contained in:
Matthew Olsson 2024-04-06 10:16:04 -07:00 committed by Andreas Kling
parent d62c0fcbdc
commit 31341b280a
Notes: sideshowbarker 2024-07-17 21:16:31 +09:00
122 changed files with 199 additions and 5 deletions

View file

@ -28,6 +28,8 @@
namespace Web::HTML {
JS_DEFINE_ALLOCATOR(FetchContext);
OnFetchScriptComplete create_on_fetch_script_complete(JS::Heap& heap, Function<void(JS::GCPtr<Script>)> function)
{
return JS::create_heap_function(heap, move(function));