1
0
forked from Mirror/wren

vm; handle errors from fn.call (still investigating)

This commit is contained in:
ruby0x1
2020-09-18 13:11:12 -07:00
parent 86463acb90
commit beae242a41

View File

@ -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;