mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 04:34:59 +00:00
LibJS: Reduce use of Interpreter in LexicalEnvironment
This commit is contained in:
parent
1175ecf1dd
commit
3df604ad12
7 changed files with 22 additions and 22 deletions
|
@ -138,7 +138,7 @@ Value ScriptFunction::call()
|
|||
}
|
||||
}
|
||||
arguments.append({ parameter.name, value });
|
||||
vm().current_environment()->set(parameter.name, { value, DeclarationKind::Var });
|
||||
vm().current_environment()->set(global_object(), parameter.name, { value, DeclarationKind::Var });
|
||||
}
|
||||
return interpreter->execute_statement(global_object(), m_body, arguments, ScopeType::Function);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue