summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-08-28 14:53:39 +0100
committerLinus Groh <mail@linusgroh.de>2022-08-28 16:36:56 +0100
commit4f436bd323b147b77031d55cf916c4a6f26ae91f (patch)
tree83d2ace4bb6d1c36dcbf4ca59aab43bf3d10f80a /Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h
parentcfa588585512540be5738b9b02511560a1126612 (diff)
downloadserenity-4f436bd323b147b77031d55cf916c4a6f26ae91f.zip
LibJS: Let NewGlobalEnvironment take a plain Object
The object is passed directly to NewObjectEnvironment, which has no requirement for this being a JS::GlobalObject. This is needed for the next change, which will make Realm store a plain Object as for the global object as well.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h b/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h
index 08e1557766..bed905d76f 100644
--- a/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h
+++ b/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h
@@ -14,7 +14,7 @@ class GlobalEnvironment final : public Environment {
JS_ENVIRONMENT(GlobalEnvironment, Environment);
public:
- GlobalEnvironment(GlobalObject&, Object& this_value);
+ GlobalEnvironment(Object&, Object& this_value);
virtual bool has_this_binding() const final { return true; }
virtual ThrowCompletionOr<Value> get_this_binding(VM&) const final;