From df85ad2e7f975026ca1e6bd84b26fff81c8d99c8 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 25 Aug 2022 11:24:10 +0800 Subject: update to Lua 5.4.5. --- src/3rdParty/lua/ldebug.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/3rdParty/lua/ldebug.c') diff --git a/src/3rdParty/lua/ldebug.c b/src/3rdParty/lua/ldebug.c index a716d95..fa15eaf 100644 --- a/src/3rdParty/lua/ldebug.c +++ b/src/3rdParty/lua/ldebug.c @@ -824,8 +824,11 @@ l_noret luaG_runerror (lua_State *L, const char *fmt, ...) { va_start(argp, fmt); msg = luaO_pushvfstring(L, fmt, argp); /* format message */ va_end(argp); - if (isLua(ci)) /* if Lua function, add source:line information */ + if (isLua(ci)) { /* if Lua function, add source:line information */ luaG_addinfo(L, msg, ci_func(ci)->p->source, getcurrentline(ci)); + setobjs2s(L, L->top - 2, L->top - 1); /* remove 'msg' from the stack */ + L->top--; + } luaG_errormsg(L); } -- cgit v1.2.3-55-g6feb