support Local GotoExpr
This commit is contained in:
1 parent
aeffd8b9f8
commit
f181f50e91
1 file changed
+6
-1
+6
-1
@@ -838,8 +838,13 @@ class GotoExpr : Code
|
||||
{
|
||||
Value label;
|
||||
vm.pop(label);
|
||||
if(!label.isString)
|
||||
if(label.isString)
|
||||
{
|
||||
if (sc && sc.func)
|
||||
{
|
||||
vm.pc = sc.func.label[label.castString] - 1;
|
||||
return;
|
||||
}
|
||||
vm.pc = vm.currentSlot.globalLabel[label.castString] - 1;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user