mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:37:34 +00:00
LibWeb: Make factory method of HTML::MessageChannel fallible
This commit is contained in:
parent
52e9839d8b
commit
3d79cdf095
2 changed files with 3 additions and 3 deletions
|
@ -11,9 +11,9 @@
|
||||||
|
|
||||||
namespace Web::HTML {
|
namespace Web::HTML {
|
||||||
|
|
||||||
JS::NonnullGCPtr<MessageChannel> MessageChannel::construct_impl(JS::Realm& realm)
|
WebIDL::ExceptionOr<JS::NonnullGCPtr<MessageChannel>> MessageChannel::construct_impl(JS::Realm& realm)
|
||||||
{
|
{
|
||||||
return realm.heap().allocate<MessageChannel>(realm, realm).release_allocated_value_but_fixme_should_propagate_errors();
|
return MUST_OR_THROW_OOM(realm.heap().allocate<MessageChannel>(realm, realm));
|
||||||
}
|
}
|
||||||
|
|
||||||
MessageChannel::MessageChannel(JS::Realm& realm)
|
MessageChannel::MessageChannel(JS::Realm& realm)
|
||||||
|
|
|
@ -16,7 +16,7 @@ class MessageChannel final : public Bindings::PlatformObject {
|
||||||
WEB_PLATFORM_OBJECT(MessageChannel, Bindings::PlatformObject);
|
WEB_PLATFORM_OBJECT(MessageChannel, Bindings::PlatformObject);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static JS::NonnullGCPtr<MessageChannel> construct_impl(JS::Realm&);
|
static WebIDL::ExceptionOr<JS::NonnullGCPtr<MessageChannel>> construct_impl(JS::Realm&);
|
||||||
virtual ~MessageChannel() override;
|
virtual ~MessageChannel() override;
|
||||||
|
|
||||||
MessagePort* port1();
|
MessagePort* port1();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue