mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-27 12:11:12 +08:00
refactor: emit 冗余标志参数收敛为内部推导
This commit is contained in:
@@ -48,7 +48,7 @@ impl Emitter {
|
||||
None => {
|
||||
let reg = ctx.alloc_reg();
|
||||
ctx.push_scope_with_kind(ScopeKind::BlockScope);
|
||||
ctx.declare(name, reg, VariableDeclarationKind::Const, true)?;
|
||||
ctx.declare(name, reg, VariableDeclarationKind::Const)?;
|
||||
pushed_scope = true;
|
||||
reg
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user