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:
|
case METHOD_FUNCTION_CALL:
|
||||||
STORE_FRAME();
|
STORE_FRAME();
|
||||||
method->as.primitive(vm, args);
|
method->as.primitive(vm, args);
|
||||||
|
if (wrenHasError(fiber)) RUNTIME_ERROR();
|
||||||
LOAD_FRAME();
|
LOAD_FRAME();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user