Merge branch 'master' into nextversion

This commit is contained in:
Roberto Ierusalimschy
2023-08-23 15:14:03 -03:00
22 changed files with 134 additions and 88 deletions

View File

@@ -396,7 +396,7 @@ void luaE_warning (lua_State *L, const char *msg, int tocont) {
void luaE_warnerror (lua_State *L, const char *where) {
TValue *errobj = s2v(L->top.p - 1); /* error object */
const char *msg = (ttisstring(errobj))
? svalue(errobj)
? getstr(tsvalue(errobj))
: "error object is not a string";
/* produce warning "error in %s (%s)" (where, msg) */
luaE_warning(L, "error in ", 1);