Fix several bugs with error handling in xxx_with_traceback functions

In resume_with_traceback, always use the coroutine stack for error handling so
we don't miss panics, in both _with_traceback functions remove the temporary
traceback entry from the stack.
This commit is contained in:
kyren
2017-07-27 17:16:40 -04:00
parent a2b77f37a2
commit d415455ccb
3 changed files with 24 additions and 6 deletions
+1 -1
View File
@@ -858,7 +858,7 @@ impl<'lua> Thread<'lua> {
}
handle_error(
lua.state,
thread_state,
resume_with_traceback(thread_state, lua.state, nargs),
)?;