mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 00:55:06 +00:00
LibJS: Avoid unnecessary HashMap copy in ECMAScriptFunctionObject
This commit is contained in:
parent
3d24850db5
commit
5855b19ff3
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ FunctionEnvironment* ECMAScriptFunctionObject::create_environment(FunctionObject
|
|||
}
|
||||
}
|
||||
|
||||
auto* environment = heap().allocate<FunctionEnvironment>(global_object(), m_environment, variables);
|
||||
auto* environment = heap().allocate<FunctionEnvironment>(global_object(), m_environment, move(variables));
|
||||
environment->set_function_object(static_cast<ECMAScriptFunctionObject&>(function_being_invoked));
|
||||
if (m_is_arrow_function) {
|
||||
environment->set_this_binding_status(FunctionEnvironment::ThisBindingStatus::Lexical);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue