1
0

Fix error

This commit is contained in:
otya128
2016-12-23 21:09:38 +09:00
parent b0cd488f4f
commit acb51742b2
3 changed files with 11 additions and 1 deletions

View File

@@ -1560,7 +1560,15 @@ class CallBuiltinFunction : Code
arg = vm.stack[vm.stacki - argcount..vm.stacki];
result = vm.stack[vm.stacki/* - argcount */+ 1..vm.stacki + 1/* - argcount */+ outcount];//雑;
}
func.func(vm.petitcomputer, arg, result);
try
{
func.func(vm.petitcomputer, arg, result);
}
catch (SmileBasicError sbe)
{
sbe.func = func.name;
throw sbe;
}
if(func.variadic)
{
vm.stacki -= argcount;