Skip to content

Commit 5ab3dc7

Browse files
committed
fixed call step depth for implicit errors in coroutines for lua 5.1
1 parent 079124e commit 5ab3dc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debugger/debugger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ export namespace Debugger {
10781078
threadStackOffsets.set(activeThread, 1);
10791079
const results = luaCoroutineResume(thread, ...args);
10801080
if (!results[0]) {
1081-
breakForError(results[1], 1, true);
1081+
breakForError(results[1], 2, true);
10821082
}
10831083
threadStackOffsets.delete(activeThread);
10841084
return unpack(results, 2);

0 commit comments

Comments
 (0)