diff options
Diffstat (limited to 'Libraries/LibWeb/Bindings/WindowObject.cpp')
-rw-r--r-- | Libraries/LibWeb/Bindings/WindowObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Bindings/WindowObject.cpp b/Libraries/LibWeb/Bindings/WindowObject.cpp index a347f22d44..2382dd16de 100644 --- a/Libraries/LibWeb/Bindings/WindowObject.cpp +++ b/Libraries/LibWeb/Bindings/WindowObject.cpp @@ -244,7 +244,7 @@ JS_DEFINE_NATIVE_GETTER(WindowObject::document_getter) auto* impl = impl_from(interpreter, global_object); if (!impl) return {}; - return wrap(interpreter.heap(), impl->document()); + return wrap(global_object, impl->document()); } JS_DEFINE_NATIVE_SETTER(WindowObject::document_setter) |