diff --git a/Userland/Applications/Spreadsheet/JSIntegration.cpp b/Userland/Applications/Spreadsheet/JSIntegration.cpp index 37fb98db489..4eb3dd90c47 100644 --- a/Userland/Applications/Spreadsheet/JSIntegration.cpp +++ b/Userland/Applications/Spreadsheet/JSIntegration.cpp @@ -16,6 +16,9 @@ namespace Spreadsheet { +JS_DEFINE_ALLOCATOR(SheetGlobalObject); +JS_DEFINE_ALLOCATOR(WorkbookObject); + Optional get_function_and_argument_index(StringView source) { JS::Lexer lexer { source }; diff --git a/Userland/Applications/Spreadsheet/JSIntegration.h b/Userland/Applications/Spreadsheet/JSIntegration.h index d52922c39f4..6aed6f0a1bf 100644 --- a/Userland/Applications/Spreadsheet/JSIntegration.h +++ b/Userland/Applications/Spreadsheet/JSIntegration.h @@ -21,6 +21,7 @@ Optional get_function_and_argument_index(StringView so class SheetGlobalObject final : public JS::GlobalObject { JS_OBJECT(SheetGlobalObject, JS::GlobalObject); + JS_DECLARE_ALLOCATOR(SheetGlobalObject); public: SheetGlobalObject(JS::Realm&, Sheet&); @@ -47,6 +48,7 @@ private: class WorkbookObject final : public JS::Object { JS_OBJECT(WorkbookObject, JS::Object); + JS_DECLARE_ALLOCATOR(WorkbookObject); public: WorkbookObject(JS::Realm&, Workbook&);