From 40a70461a0f6b0224c51fe7fb1be28edd26bb4b3 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Mon, 22 Aug 2022 18:31:08 +0100 Subject: LibWeb: Replace GlobalObject with Realm in wrapper functions Similar to create() in LibJS, wrap() et al. are on a low enough level to warrant passing a Realm directly instead of relying on the current realm from the VM, as a wrapper may need to be allocated while no JS is being executed. --- Userland/Libraries/LibWeb/Bindings/NodeWrapperFactory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/Bindings/NodeWrapperFactory.h') diff --git a/Userland/Libraries/LibWeb/Bindings/NodeWrapperFactory.h b/Userland/Libraries/LibWeb/Bindings/NodeWrapperFactory.h index 025e0c3f2f..69bad2cc08 100644 --- a/Userland/Libraries/LibWeb/Bindings/NodeWrapperFactory.h +++ b/Userland/Libraries/LibWeb/Bindings/NodeWrapperFactory.h @@ -12,7 +12,7 @@ namespace Web { namespace Bindings { -NodeWrapper* wrap(JS::GlobalObject&, DOM::Node&); +NodeWrapper* wrap(JS::Realm&, DOM::Node&); } } -- cgit v1.2.3