mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:17:46 +00:00
LibJS: Avoid a FlyString copy in ECMAScriptFunctionObject
This commit is contained in:
parent
5a929f12bc
commit
70e25deea3
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ ThrowCompletionOr<void> ECMAScriptFunctionObject::function_declaration_instantia
|
||||||
functions_to_initialize.append(function);
|
functions_to_initialize.append(function);
|
||||||
});
|
});
|
||||||
|
|
||||||
auto arguments_name = vm.names.arguments.as_string();
|
auto const& arguments_name = vm.names.arguments.as_string();
|
||||||
|
|
||||||
if (!has_parameter_expressions && function_names.contains(arguments_name))
|
if (!has_parameter_expressions && function_names.contains(arguments_name))
|
||||||
arguments_object_needed = false;
|
arguments_object_needed = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue