fix function call
This commit is contained in:
@@ -1269,6 +1269,7 @@ class CallFunctionCode : Code
|
|||||||
void resolve(VM vm)
|
void resolve(VM vm)
|
||||||
{
|
{
|
||||||
func = vm.currentSlot.functions.get(name, null);
|
func = vm.currentSlot.functions.get(name, null);
|
||||||
|
if (!func)
|
||||||
throw new SyntaxError(name);
|
throw new SyntaxError(name);
|
||||||
}
|
}
|
||||||
override void execute(VM vm)
|
override void execute(VM vm)
|
||||||
|
|||||||
Reference in New Issue
Block a user