Skip to content

Commit

Permalink
Apply review
Browse files Browse the repository at this point in the history
  • Loading branch information
raskad committed Oct 10, 2023
1 parent 569c21f commit e8042b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions boa_engine/src/builtins/eval/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,9 @@ impl Eval {
let env_index = compiler.push_compile_environment(strict);
compiler.emit_with_varying_operand(Opcode::PushDeclarativeEnvironment, env_index);
let lex_env = compiler.lexical_environment.clone();
compiler.lexical_environment = lex_env.clone();

if strict {
var_env = lex_env.clone();
compiler.variable_environment = var_env.clone();
compiler.variable_environment = lex_env.clone();
}

compiler.eval_declaration_instantiation(&body, strict, &var_env, &lex_env)?;
Expand Down

0 comments on commit e8042b3

Please sign in to comment.