summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/WrappedFunction.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-02-12 16:06:37 +0000
committerLinus Groh <mail@linusgroh.de>2022-02-12 16:06:37 +0000
commitc08a52dd9751a5e95628027c205887a136868fdd (patch)
tree8645b717bce7ab5e43f661a50a66f1b94224b2e7 /Userland/Libraries/LibJS/Runtime/WrappedFunction.cpp
parent16aeb8b51da818b2e31c41f7f5aa171f5ccdc0af (diff)
downloadserenity-c08a52dd9751a5e95628027c205887a136868fdd.zip
LibJS: Remove the name prefix for wrapped functions
This is a normative change in the ShadowRealm spec. See: https://github.com/tc39/proposal-shadowrealm/commit/4ca634a
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/WrappedFunction.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/WrappedFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/WrappedFunction.cpp b/Userland/Libraries/LibJS/Runtime/WrappedFunction.cpp
index a7edbeee0a..d15269de49 100644
--- a/Userland/Libraries/LibJS/Runtime/WrappedFunction.cpp
+++ b/Userland/Libraries/LibJS/Runtime/WrappedFunction.cpp
@@ -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())