fix do wrap bugs

This commit is contained in:
2023-03-11 02:06:36 +00:00
parent 597be4e0df
commit f5d8eb6d70
5 changed files with 18 additions and 16 deletions

View File

@@ -94,11 +94,7 @@ func runCall(c call, stack stack) (any, ArErr) {
level[param] = args[i]
}
resp, err := runVal(x.run, append(x.stack, level))
switch x := resp.(type) {
case PassBackJumpStatment:
resp = x.value
}
return resp, err
return openJump(resp), err
}
return nil, ArErr{"Runtime Error", "type '" + typeof(callable) + "' is not callable", c.line, c.path, c.code, true}
}