mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibJS: Convert standalone construct() to NonnullGCPtr
This commit is contained in:
parent
6ae79a84df
commit
bd40464195
Notes:
sideshowbarker
2024-07-17 20:19:08 +09:00
Author: https://github.com/linusg
Commit: bd40464195
Pull-request: https://github.com/SerenityOS/serenity/pull/16498
Reviewed-by: https://github.com/trflynn89 ✅
17 changed files with 35 additions and 35 deletions
|
@ -90,7 +90,7 @@ ThrowCompletionOr<NonnullGCPtr<Object>> BoundFunction::internal_construct(Marked
|
|||
final_new_target = ⌖
|
||||
|
||||
// 6. Return ? Construct(target, args, newTarget).
|
||||
return *TRY(construct(vm, target, move(args), final_new_target));
|
||||
return construct(vm, target, move(args), final_new_target);
|
||||
}
|
||||
|
||||
void BoundFunction::visit_edges(Visitor& visitor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue