mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-01 20:10:28 +00:00
Spreadsheet: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR()
This commit is contained in:
parent
97b343f696
commit
5023e5fda3
Notes:
sideshowbarker
2024-07-17 01:27:18 +09:00
Author: https://github.com/mattco98 Commit: https://github.com/SerenityOS/serenity/commit/5023e5fda3 Pull-request: https://github.com/SerenityOS/serenity/pull/23878 Issue: https://github.com/SerenityOS/serenity/issues/23805 Reviewed-by: https://github.com/awesomekling
2 changed files with 5 additions and 0 deletions
|
@ -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 };
|
||||
|
|
|
@ -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&);
|
||||
|
|
Loading…
Reference in a new issue