mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:47:35 +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
|
@ -15,7 +15,7 @@ class IdleDeadline final : public Bindings::PlatformObject {
|
|||
WEB_PLATFORM_OBJECT(IdleDeadline, Bindings::PlatformObject);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<IdleDeadline> create(JS::Realm&, bool did_timeout = false);
|
||||
static WebIDL::ExceptionOr<JS::NonnullGCPtr<IdleDeadline>> create(JS::Realm&, bool did_timeout = false);
|
||||
virtual ~IdleDeadline() override;
|
||||
|
||||
double time_remaining() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue