Fix wrenAbortFiber does not work inside of foreign class allocator

This commit is contained in:
Matus Novak
2019-09-17 19:43:53 +02:00
parent 740c365597
commit f91586a71a
3 changed files with 24 additions and 0 deletions
+1
View File
@@ -1198,6 +1198,7 @@ static WrenInterpretResult runInterpreter(WrenVM* vm, register ObjFiber* fiber)
CASE_CODE(FOREIGN_CONSTRUCT):
ASSERT(IS_CLASS(stackStart[0]), "'this' should be a class.");
createForeign(vm, fiber, stackStart);
if (wrenHasError(fiber)) RUNTIME_ERROR();
DISPATCH();
CASE_CODE(CLOSURE):