mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
fix calling on wrong stack
This commit is contained in:
@@ -84,7 +84,7 @@ func runCall(c call, stack stack) (any, ArErr) {
|
|||||||
for i, param := range x.params {
|
for i, param := range x.params {
|
||||||
level[param] = args[i]
|
level[param] = args[i]
|
||||||
}
|
}
|
||||||
resp, err := runVal(x.run, append(stack, level))
|
resp, err := runVal(x.run, append(x.stack, level))
|
||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
return nil, ArErr{"Runtime Error", "type '" + typeof(callable) + "' is not callable", c.line, c.path, c.code, true}
|
return nil, ArErr{"Runtime Error", "type '" + typeof(callable) + "' is not callable", c.line, c.path, c.code, true}
|
||||||
|
|||||||
Reference in New Issue
Block a user