mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 10:41:11 +08:00
refactor: 移除 lexical 预声明函数的死参数 global_lexical
This commit is contained in:
@@ -445,7 +445,7 @@ impl Emitter {
|
||||
self.pre_register_builtin_references(body, &lexical_excluded, ctx);
|
||||
self.predeclare_var_declarations(body, ctx);
|
||||
// 模块 lexical 声明入模块环境(非全局对象),不做受限全局名检查。
|
||||
let _ = self.predeclare_lexical_declarations(body, ctx, false);
|
||||
let _ = self.predeclare_lexical_declarations(body, ctx);
|
||||
|
||||
// 闭包捕获分析(import 绑定名纳入 own_bindings,供嵌套函数 cell 捕获)。
|
||||
ctx.own_bindings = collect_own_binding_names(&[], body);
|
||||
|
||||
Reference in New Issue
Block a user