Skip to content

Commit 0c11afd

Browse files
committed
修复了eval expr返回错误时导致的栈异常
1 parent b160eeb commit 0c11afd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

emmy_debugger/src/debugger/emmy_debugger.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,7 @@ bool Debugger::DoEval(std::shared_ptr<EvalContext> evalContext) {
972972
evalContext->error = lua_tostring(L, -1);
973973
}
974974

975+
lua_pop(L, 1);
975976
return false;
976977
}
977978

0 commit comments

Comments
 (0)