forked from Mirror/wren
vm; handle errors from fn.call (still investigating)
This commit is contained in:
@ -1018,6 +1018,7 @@ static WrenInterpretResult runInterpreter(WrenVM* vm, register ObjFiber* fiber)
|
||||
case METHOD_FUNCTION_CALL:
|
||||
STORE_FRAME();
|
||||
method->as.primitive(vm, args);
|
||||
if (wrenHasError(fiber)) RUNTIME_ERROR();
|
||||
LOAD_FRAME();
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user