diff --git a/es2panda/ir/statements/forInStatement.cpp b/es2panda/ir/statements/forInStatement.cpp index e70fd6f324fd4dc9eadbcf66be95e1fd0f427cea..1ab3d527fb86792af6a17ee43eb52f9d374c8250 100644 --- a/es2panda/ir/statements/forInStatement.cpp +++ b/es2panda/ir/statements/forInStatement.cpp @@ -63,9 +63,8 @@ void ForInStatement::Compile([[maybe_unused]] compiler::PandaGen *pg) const pg->LoadAccumulator(this, propName); lref.SetValue(); - compiler::LoopEnvScope declEnvScope(pg, scope_->DeclScope()); - { + compiler::LoopEnvScope declEnvScope(pg, scope_->DeclScope()); compiler::LoopEnvScope envScope(pg, scope_, labelTarget); body_->Compile(pg); }