mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 19:21:11 +08:00
refactor: 移除 lexical 预声明函数的死参数 global_lexical
This commit is contained in:
@@ -34,7 +34,7 @@ impl Emitter {
|
||||
ctx.push_scope();
|
||||
for case in cases.iter() {
|
||||
self.predeclare_block_function_declarations(&case.consequent, ctx, false);
|
||||
self.predeclare_lexical_declarations(&case.consequent, ctx, false)?;
|
||||
self.predeclare_lexical_declarations(&case.consequent, ctx)?;
|
||||
}
|
||||
// case 内函数声明的块入口初始化:同名重复声明按源序物化,末次声明成为
|
||||
// 入口值;声明点复用块槽写回外层 var(见 emit_function_declaration)。
|
||||
|
||||
Reference in New Issue
Block a user