diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ErrorConstructor.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ErrorConstructor.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ErrorConstructor.h b/Userland/Libraries/LibJS/Runtime/ErrorConstructor.h index 8c37dbb1e2..4226c6107f 100644 --- a/Userland/Libraries/LibJS/Runtime/ErrorConstructor.h +++ b/Userland/Libraries/LibJS/Runtime/ErrorConstructor.h @@ -19,8 +19,8 @@ public: virtual void initialize(GlobalObject&) override; virtual ~ErrorConstructor() override = default; - virtual Value call() override; - virtual Value construct(FunctionObject& new_target) override; + virtual ThrowCompletionOr<Value> call() override; + virtual ThrowCompletionOr<Object*> construct(FunctionObject& new_target) override; private: virtual bool has_constructor() const override { return true; } @@ -34,8 +34,8 @@ private: explicit ConstructorName(GlobalObject&); \ virtual void initialize(GlobalObject&) override; \ virtual ~ConstructorName() override; \ - virtual Value call() override; \ - virtual Value construct(FunctionObject& new_target) override; \ + virtual ThrowCompletionOr<Value> call() override; \ + virtual ThrowCompletionOr<Object*> construct(FunctionObject& new_target) override; \ \ private: \ virtual bool has_constructor() const override { return true; } \ |