fix function call

This commit is contained in:
otya128 committed 2016-12-02 21:30:58 +09:00
1 parent ccc9da91e1
commit bc48b11efa
1 file changed
+2 -1
+2 -1
View File
@@ -1269,7 +1269,8 @@ class CallFunctionCode : Code
void resolve(VM vm)
{
func = vm.currentSlot.functions.get(name, null);
throw new SyntaxError(name);
if (!func)
throw new SyntaxError(name);
}
override void execute(VM vm)
{