From 5023e5fda3529e37bf5716ae1017eb93a7f5b297 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Sat, 6 Apr 2024 10:16:45 -0700 Subject: [PATCH] Spreadsheet: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() --- Userland/Applications/Spreadsheet/JSIntegration.cpp | 3 +++ Userland/Applications/Spreadsheet/JSIntegration.h | 2 ++ 2 files changed, 5 insertions(+) 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&);