fix intrinsics and env
This commit is contained in:
5
mcode.cm
5
mcode.cm
@@ -1384,8 +1384,6 @@ var mcode = function(ast) {
|
||||
pstate = parent_states[length(parent_states) - 1 - _lv]
|
||||
pslot = find_var_in_saved(pstate, name)
|
||||
emit_3("put", dest, pslot, level)
|
||||
} else {
|
||||
add_instr(["set_var", name, dest])
|
||||
}
|
||||
return dest
|
||||
} else if (left_kind == ".") {
|
||||
@@ -1486,9 +1484,6 @@ var mcode = function(ast) {
|
||||
return val_slot
|
||||
}
|
||||
val_slot = gen_expr(right, -1)
|
||||
if (level == -1) {
|
||||
add_instr(["set_var", name, val_slot])
|
||||
}
|
||||
} else {
|
||||
val_slot = gen_expr(right, -1)
|
||||
if (level > 0) {
|
||||
|
||||
Reference in New Issue
Block a user