now local values are stored on stack. upvalue is generated when creating a new function in local scope.

may include some bugs inside. but all test files has passed the test so i decide to push it.
This commit is contained in:
ValKmjolnir
2022-02-12 23:12:30 +08:00
parent 980350d70a
commit e7f503fae1
7 changed files with 169 additions and 144 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ void nasal_dbg::run(
}
// set canary and program counter
auto canary=gc.stack+STACK_MAX_DEPTH-1;
canary=gc.stack+STACK_MAX_DEPTH-1;
pc=0;
// goto the first operand
goto *code[pc];