From 84a0982085967895e9bb5e5439c09960840da2d5 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 5 May 2017 09:50:40 +1000 Subject: src/lauxlib.js: Fix traceback text --- src/lauxlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lauxlib.js b/src/lauxlib.js index d9846c8..389afdf 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -121,7 +121,7 @@ const luaL_traceback = function(L, L1, msg, level) { level = last - LEVELS2 + 1; /* and skip to last ones */ } else { lua.lua_getinfo(L1, lua.to_luastring("Slnt", true), ar); - lua.lua_pushstring(L, ['\n'.charCodeAt(0), '\t'.charCodeAt(0), '.'.charCodeAt(0), '.'.charCodeAt(0), '.'.charCodeAt(0)].concat(ar.short_src)); + lua.lua_pushstring(L, ['\n'.charCodeAt(0), '\t'.charCodeAt(0)].concat(ar.short_src).concat([':'.charCodeAt(0)])); if (ar.currentline > 0) lua.lua_pushliteral(L, `${ar.currentline}:`); lua.lua_pushliteral(L, " in "); -- cgit v1.2.3-70-g09d2