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

This commit is contained in:
Matthew Olsson 2024-04-06 10:16:45 -07:00 committed by Andreas Kling
parent 97b343f696
commit 5023e5fda3
Notes: sideshowbarker 2024-07-17 01:27:18 +09:00
2 changed files with 5 additions and 0 deletions

View file

@ -16,6 +16,9 @@
namespace Spreadsheet {
JS_DEFINE_ALLOCATOR(SheetGlobalObject);
JS_DEFINE_ALLOCATOR(WorkbookObject);
Optional<FunctionAndArgumentIndex> get_function_and_argument_index(StringView source)
{
JS::Lexer lexer { source };

View file

@ -21,6 +21,7 @@ Optional<FunctionAndArgumentIndex> 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&);