mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:47:37 +00:00
LibWeb: Make factory method of IdleDeadline fallible
This commit is contained in:
parent
ff2a991e19
commit
f0fd1cae3d
3 changed files with 4 additions and 4 deletions
|
@ -12,9 +12,9 @@
|
|||
|
||||
namespace Web::RequestIdleCallback {
|
||||
|
||||
JS::NonnullGCPtr<IdleDeadline> IdleDeadline::create(JS::Realm& realm, bool did_timeout)
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<IdleDeadline>> IdleDeadline::create(JS::Realm& realm, bool did_timeout)
|
||||
{
|
||||
return realm.heap().allocate<IdleDeadline>(realm, realm, did_timeout).release_allocated_value_but_fixme_should_propagate_errors();
|
||||
return MUST_OR_THROW_OOM(realm.heap().allocate<IdleDeadline>(realm, realm, did_timeout));
|
||||
}
|
||||
|
||||
IdleDeadline::IdleDeadline(JS::Realm& realm, bool did_timeout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue