mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibJS: Remove the name prefix for wrapped functions
This is a normative change in the ShadowRealm spec.
See: 4ca634a
This commit is contained in:
parent
16aeb8b51d
commit
c08a52dd97
Notes:
sideshowbarker
2024-07-17 18:58:04 +09:00
Author: https://github.com/linusg
Commit: c08a52dd97
4 changed files with 8 additions and 8 deletions
|
@ -24,8 +24,8 @@ ThrowCompletionOr<WrappedFunction*> WrappedFunction::create(GlobalObject& global
|
|||
auto& prototype = *caller_realm.global_object().function_prototype();
|
||||
auto* wrapped = global_object.heap().allocate<WrappedFunction>(global_object, caller_realm, target, prototype);
|
||||
|
||||
// 7. Let result be CopyNameAndLength(wrapped, Target, "wrapped").
|
||||
auto result = copy_name_and_length(global_object, *wrapped, target, "wrapped"sv);
|
||||
// 7. Let result be CopyNameAndLength(wrapped, Target).
|
||||
auto result = copy_name_and_length(global_object, *wrapped, target);
|
||||
|
||||
// 8. If result is an Abrupt Completion, throw a TypeError exception.
|
||||
if (result.is_throw_completion())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue