LibJS: Convert WrappedFunction::create() to NonnullGCPtr

This commit is contained in:
Linus Groh 2022-12-13 20:49:51 +00:00
commit b90f505409
Notes: sideshowbarker 2024-07-19 01:59:31 +09:00
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ class WrappedFunction final : public FunctionObject {
JS_OBJECT(WrappedFunction, FunctionObject);
public:
static ThrowCompletionOr<WrappedFunction*> create(Realm&, Realm& caller_realm, FunctionObject& target_function);
static ThrowCompletionOr<NonnullGCPtr<WrappedFunction>> create(Realm&, Realm& caller_realm, FunctionObject& target_function);
virtual ~WrappedFunction() = default;