mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
Spreadsheet: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR()
This commit is contained in:
parent
97b343f696
commit
5023e5fda3
|
@ -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