Reset API stack a fiber is aborted from wrenCall().
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user