Reset API stack a fiber is aborted from wrenCall().

This commit is contained in:
Bob Nystrom
2016-11-01 08:40:16 -07:00
parent 51e50e6cc4
commit b9f53f71fb
8 changed files with 68 additions and 7 deletions
+1
View File
@@ -400,6 +400,7 @@ static void runtimeError(WrenVM* vm)
// If we got here, nothing caught the error, so show the stack trace.
wrenDebugPrintStackTrace(vm);
vm->fiber = NULL;
vm->apiStack = NULL;
}
// Aborts the current fiber with an appropriate method not found error for a