mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
LibJS: Avoid a FlyString copy in ECMAScriptFunctionObject
This commit is contained in:
@@ -177,7 +177,7 @@ ThrowCompletionOr<void> ECMAScriptFunctionObject::function_declaration_instantia
|
||||
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))
|
||||
arguments_object_needed = false;
|
||||
|
||||
Reference in New Issue
Block a user