diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/NativeFunction.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/NativeFunction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/NativeFunction.h b/Userland/Libraries/LibJS/Runtime/NativeFunction.h index f8f0b48d2c..62d9c41d75 100644 --- a/Userland/Libraries/LibJS/Runtime/NativeFunction.h +++ b/Userland/Libraries/LibJS/Runtime/NativeFunction.h @@ -32,7 +32,7 @@ public: // Used for [[Call]] / [[Construct]]'s "...result of evaluating F in a manner that conforms to the specification of F". // Needs to be overridden by all NativeFunctions without an m_native_function. virtual ThrowCompletionOr<Value> call(); - virtual ThrowCompletionOr<Object*> construct(FunctionObject& new_target); + virtual ThrowCompletionOr<NonnullGCPtr<Object>> construct(FunctionObject& new_target); virtual FlyString const& name() const override { return m_name; }; virtual bool is_strict_mode() const override; |