diff --git a/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp b/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp index 51fdcf78f7d..905738b8f1c 100644 --- a/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp +++ b/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp @@ -15,6 +15,8 @@ namespace WebContent { +JS_DEFINE_ALLOCATOR(ConsoleGlobalEnvironmentExtensions); + ConsoleGlobalEnvironmentExtensions::ConsoleGlobalEnvironmentExtensions(JS::Realm& realm, Web::HTML::Window& window) : Object(realm, nullptr) , m_window_object(window) diff --git a/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.h b/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.h index 476000ad850..9a120af112d 100644 --- a/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.h +++ b/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.h @@ -15,6 +15,7 @@ namespace WebContent { class ConsoleGlobalEnvironmentExtensions final : public JS::Object { JS_OBJECT(ConsoleGlobalEnvironmentExtensions, JS::Object); + JS_DECLARE_ALLOCATOR(ConsoleGlobalEnvironmentExtensions); public: ConsoleGlobalEnvironmentExtensions(JS::Realm&, Web::HTML::Window&); diff --git a/Userland/Services/WebContent/PageClient.cpp b/Userland/Services/WebContent/PageClient.cpp index 7415a45a6c4..75b9ce87e2c 100644 --- a/Userland/Services/WebContent/PageClient.cpp +++ b/Userland/Services/WebContent/PageClient.cpp @@ -39,6 +39,8 @@ namespace WebContent { static bool s_use_gpu_painter = false; +JS_DEFINE_ALLOCATOR(PageClient); + void PageClient::set_use_gpu_painter() { s_use_gpu_painter = true; diff --git a/Userland/Services/WebContent/PageClient.h b/Userland/Services/WebContent/PageClient.h index b276d1abacd..45fe94e5bbb 100644 --- a/Userland/Services/WebContent/PageClient.h +++ b/Userland/Services/WebContent/PageClient.h @@ -24,6 +24,7 @@ namespace WebContent { class PageClient final : public Web::PageClient { JS_CELL(PageClient, Web::PageClient); + JS_DECLARE_ALLOCATOR(PageClient); public: static JS::NonnullGCPtr create(JS::VM& vm, PageHost& page_host, u64 id); diff --git a/Userland/Services/WebWorker/PageHost.cpp b/Userland/Services/WebWorker/PageHost.cpp index b5e6709938c..303a1b5f9a3 100644 --- a/Userland/Services/WebWorker/PageHost.cpp +++ b/Userland/Services/WebWorker/PageHost.cpp @@ -11,6 +11,8 @@ namespace WebWorker { +JS_DEFINE_ALLOCATOR(PageHost); + JS::NonnullGCPtr PageHost::create(JS::VM& vm, ConnectionFromClient& client) { return vm.heap().allocate_without_realm(client); diff --git a/Userland/Services/WebWorker/PageHost.h b/Userland/Services/WebWorker/PageHost.h index dde2af3bd6b..6f85ddbaf91 100644 --- a/Userland/Services/WebWorker/PageHost.h +++ b/Userland/Services/WebWorker/PageHost.h @@ -15,6 +15,7 @@ namespace WebWorker { class PageHost final : public Web::PageClient { JS_CELL(PageHost, Web::PageClient); + JS_DECLARE_ALLOCATOR(PageHost); public: static JS::NonnullGCPtr create(JS::VM& vm, ConnectionFromClient& client);