summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/GlobalObject.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-23 16:57:39 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-23 16:57:39 +0200
commitfc4ed8d444535f6ddf5b2d8f414466e2bdfb46b5 (patch)
treeda312b4d7a231ef27f421213552bba25c5db3710 /Libraries/LibJS/Runtime/GlobalObject.h
parentc24f5585b29a52c32315dbed49aa66c7fe94caa0 (diff)
downloadserenity-fc4ed8d444535f6ddf5b2d8f414466e2bdfb46b5.zip
LibWeb: Make wrapper factory functions take JS::GlobalObject&
Instead of taking the JS::Heap&. This allows us to get rid of some calls to JS::Interpreter::global_object(). We're getting closer and closer to multiple global objects. :^)
Diffstat (limited to 'Libraries/LibJS/Runtime/GlobalObject.h')
-rw-r--r--Libraries/LibJS/Runtime/GlobalObject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibJS/Runtime/GlobalObject.h b/Libraries/LibJS/Runtime/GlobalObject.h
index 0801d712c3..862522a0f1 100644
--- a/Libraries/LibJS/Runtime/GlobalObject.h
+++ b/Libraries/LibJS/Runtime/GlobalObject.h
@@ -27,6 +27,7 @@
#pragma once
#include <LibJS/Heap/Heap.h>
+#include <LibJS/Interpreter.h>
#include <LibJS/Runtime/Object.h>
namespace JS {