fix(compiler): 重写闭包捕获分析为 AST 级,修复 MAKE_CELL 时序
This commit is contained in:
@@ -146,7 +146,7 @@ impl Compiler {
|
||||
return Ok(val_reg);
|
||||
}
|
||||
// Check if target is a captured cell
|
||||
if ctx.scopes.symbols.lookup_is_captured(name) {
|
||||
if ctx.captured_bindings.contains(name) {
|
||||
let cell_idx = ctx
|
||||
.scopes
|
||||
.cell_registry
|
||||
|
||||
Reference in New Issue
Block a user