summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-08-16 00:20:49 +0100
committerLinus Groh <mail@linusgroh.de>2022-08-23 13:58:30 +0100
commit5dd5896588b0e5a7bc7bdadeaa7dd4865f663b79 (patch)
treeb8c099aac88ad59a9fb06624fd6245f9662a9796 /Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.h
parentecd163bdf1cbf8c9bca9e209a385a41ff5ca4f81 (diff)
downloadserenity-5dd5896588b0e5a7bc7bdadeaa7dd4865f663b79.zip
LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions
This is a continuation of the previous commit. Calling initialize() is the first thing that's done after allocating a cell on the JS heap - and in the common case of allocating an object, that's where properties are assigned and intrinsics occasionally accessed. Since those are supposed to live on the realm eventually, this is another step into that direction.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.h b/Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.h
index 90ce4bccb9..49a9af4649 100644
--- a/Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.h
+++ b/Userland/Libraries/LibJS/Runtime/GeneratorFunctionConstructor.h
@@ -16,7 +16,7 @@ class GeneratorFunctionConstructor final : public NativeFunction {
public:
explicit GeneratorFunctionConstructor(Realm&);
- virtual void initialize(GlobalObject&) override;
+ virtual void initialize(Realm&) override;
virtual ~GeneratorFunctionConstructor() override = default;
virtual ThrowCompletionOr<Value> call() override;