mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
LibJS: Convert FunctionObject::internal_construct() to NonnullGCPtr
This commit is contained in:
parent
1c24b82dd7
commit
03acbf0beb
10 changed files with 17 additions and 17 deletions
|
@ -82,7 +82,7 @@ ThrowCompletionOr<Object*> construct_impl(VM& vm, FunctionObject& function, Opti
|
|||
arguments_list = MarkedVector<Value> { vm.heap() };
|
||||
|
||||
// 3. Return ? F.[[Construct]](argumentsList, newTarget).
|
||||
return function.internal_construct(move(*arguments_list), *new_target);
|
||||
return TRY(function.internal_construct(move(*arguments_list), *new_target)).ptr();
|
||||
}
|
||||
|
||||
// 7.3.19 LengthOfArrayLike ( obj ), https://tc39.es/ecma262/#sec-lengthofarraylike
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue