summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Interpreter.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-09-12 12:33:54 +0100
committerAndreas Kling <kling@serenityos.org>2021-09-12 15:18:25 +0200
commit7b92889e6bbafba2fcc74b9048fa5f05f07ce528 (patch)
tree8fee5960dc9bb4eff6d617b41a864ad015da5919 /Userland/Libraries/LibJS/Interpreter.h
parent106f29591688bc7f430f58360a2f6171e37b01ba (diff)
downloadserenity-7b92889e6bbafba2fcc74b9048fa5f05f07ce528.zip
LibJS: Change Interpreter::create_with_existing_{global_object => realm}
We need both a GlobalObject and Realm now, but can get the former from the latter (once initialized). This also fixes JS execution in LibWeb, as we failed to set the Realm of the newly created Interpreter in this function.
Diffstat (limited to 'Userland/Libraries/LibJS/Interpreter.h')
-rw-r--r--Userland/Libraries/LibJS/Interpreter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Interpreter.h b/Userland/Libraries/LibJS/Interpreter.h
index cb75ab14ce..aaea4fc382 100644
--- a/Userland/Libraries/LibJS/Interpreter.h
+++ b/Userland/Libraries/LibJS/Interpreter.h
@@ -48,7 +48,7 @@ public:
return interpreter;
}
- static NonnullOwnPtr<Interpreter> create_with_existing_global_object(GlobalObject&);
+ static NonnullOwnPtr<Interpreter> create_with_existing_realm(Realm&);
~Interpreter();