summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/MessageChannel.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/MessageChannel.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/MessageChannel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/MessageChannel.h b/Userland/Libraries/LibWeb/HTML/MessageChannel.h
index d4d4683c5b..4fc9c2c2e4 100644
--- a/Userland/Libraries/LibWeb/HTML/MessageChannel.h
+++ b/Userland/Libraries/LibWeb/HTML/MessageChannel.h
@@ -16,7 +16,7 @@ class MessageChannel final : public Bindings::PlatformObject {
WEB_PLATFORM_OBJECT(MessageChannel, Bindings::PlatformObject);
public:
- static JS::NonnullGCPtr<MessageChannel> create_with_global_object(HTML::Window&);
+ static JS::NonnullGCPtr<MessageChannel> construct_impl(JS::Realm&);
virtual ~MessageChannel() override;
MessagePort* port1();
@@ -26,7 +26,7 @@ public:
MessagePort const* port2() const;
private:
- explicit MessageChannel(HTML::Window&);
+ explicit MessageChannel(JS::Realm&);
virtual void visit_edges(Cell::Visitor&) override;