diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Bindings/ImageConstructor.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Bindings/ImageConstructor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/ImageConstructor.h b/Userland/Libraries/LibWeb/Bindings/ImageConstructor.h index 54959d0cab..b516216cfd 100644 --- a/Userland/Libraries/LibWeb/Bindings/ImageConstructor.h +++ b/Userland/Libraries/LibWeb/Bindings/ImageConstructor.h @@ -16,8 +16,8 @@ public: virtual void initialize(JS::GlobalObject&) override; virtual ~ImageConstructor() override; - virtual JS::Value call() override; - virtual JS::Value construct(JS::FunctionObject& new_target) override; + virtual JS::ThrowCompletionOr<JS::Value> call() override; + virtual JS::ThrowCompletionOr<JS::Object*> construct(JS::FunctionObject& new_target) override; private: virtual bool has_constructor() const override { return true; } |