1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 22:15:07 +00:00

LibWeb: Make factory method of HTML::MessagePort fallible

This commit is contained in:
Kenneth Myhra 2023-02-12 22:30:39 +01:00 committed by Linus Groh
parent 7ec444047c
commit 471ad7ba01
4 changed files with 8 additions and 8 deletions

View file

@ -20,10 +20,10 @@ MessageChannel::MessageChannel(JS::Realm& realm)
: PlatformObject(realm)
{
// 1. Set this's port 1 to a new MessagePort in this's relevant Realm.
m_port1 = MessagePort::create(realm);
m_port1 = MessagePort::create(realm).release_value_but_fixme_should_propagate_errors();
// 2. Set this's port 2 to a new MessagePort in this's relevant Realm.
m_port2 = MessagePort::create(realm);
m_port2 = MessagePort::create(realm).release_value_but_fixme_should_propagate_errors();
// 3. Entangle this's port 1 and this's port 2.
m_port1->entangle_with(*m_port2);