LibJS: Remove the name prefix for wrapped functions

This is a normative change in the ShadowRealm spec.

See: 4ca634a
This commit is contained in:
Linus Groh 2022-02-12 16:06:37 +00:00
commit c08a52dd97
Notes: sideshowbarker 2024-07-17 18:58:04 +09:00
4 changed files with 8 additions and 8 deletions

View file

@ -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())