1
Fork 0
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:
Andreas Kling 2020-09-29 16:41:28 +02:00
parent 1175ecf1dd
commit 3df604ad12
7 changed files with 22 additions and 22 deletions

View file

@ -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);
}