From 5dd5896588b0e5a7bc7bdadeaa7dd4865f663b79 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Tue, 16 Aug 2022 00:20:49 +0100 Subject: 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. --- Userland/Libraries/LibJS/Runtime/DataViewConstructor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibJS/Runtime/DataViewConstructor.h') diff --git a/Userland/Libraries/LibJS/Runtime/DataViewConstructor.h b/Userland/Libraries/LibJS/Runtime/DataViewConstructor.h index d00c222a3f..20d77f0dcf 100644 --- a/Userland/Libraries/LibJS/Runtime/DataViewConstructor.h +++ b/Userland/Libraries/LibJS/Runtime/DataViewConstructor.h @@ -15,7 +15,7 @@ class DataViewConstructor final : public NativeFunction { public: explicit DataViewConstructor(Realm&); - virtual void initialize(GlobalObject&) override; + virtual void initialize(Realm&) override; virtual ~DataViewConstructor() override = default; virtual ThrowCompletionOr call() override; -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0