mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibJS: Convert FunctionObject::internal_construct() to NonnullGCPtr
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 03:09:22 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/03acbf0beb Pull-request: https://github.com/SerenityOS/serenity/pull/16498 Reviewed-by: https://github.com/trflynn89 ✅
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user