diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/Accessor.h')
-rw-r--r-- | Libraries/LibJS/Runtime/Accessor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/Accessor.h b/Libraries/LibJS/Runtime/Accessor.h index 82ade250a2..0bbf945914 100644 --- a/Libraries/LibJS/Runtime/Accessor.h +++ b/Libraries/LibJS/Runtime/Accessor.h @@ -37,7 +37,7 @@ class Accessor final : public Cell { public: static Accessor* create(Interpreter& interpreter, Function* getter, Function* setter) { - return interpreter.heap().allocate<Accessor>(getter, setter); + return interpreter.heap().allocate<Accessor>(interpreter.global_object(), getter, setter); } Accessor(Function* getter, Function* setter) |