aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ldebug.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ldebug.js b/src/ldebug.js
index 9c67f26..aed41e2 100644
--- a/src/ldebug.js
+++ b/src/ldebug.js
@@ -571,9 +571,7 @@ const luaG_addinfo = function(L, msg, src, line) {
if (src)
buff = lobject.luaO_chunkid(src, luaconf.LUA_IDSIZE);
- L.stack[L.top++] = L.l_G.intern(defs.to_luastring(`${defs.to_jsstring(buff)}:${line}: ${defs.to_jsstring(msg)}`));
-
- return L.stack[L.top - 1];
+ return lobject.luaO_pushfstring(L, defs.to_luastring("%s:%d: %s", true), buff, line, msg)
};
const luaG_runerror = function(L, fmt, ...argp) {