From 632cf08572b35e8a350ac8b1f9d5bf77fb4e7b95 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Sun, 12 Mar 2017 10:50:19 +0100 Subject: [Strings] ldebug.js, ldo.js, lfunc.js --- src/ldebug.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ldebug.js') diff --git a/src/ldebug.js b/src/ldebug.js index 091b896..2858267 100644 --- a/src/ldebug.js +++ b/src/ldebug.js @@ -400,7 +400,7 @@ const isinstack = function(L, ci, o) { } return false; -} +}; /* ** Checks whether value 'o' came from an upvalue. (That can only happen @@ -414,7 +414,7 @@ const getupvalname = function(L, ci, o, name) { return { name: upvalname(c.p, i), funcname: 'upvalue' - } + }; } } @@ -469,7 +469,7 @@ const luaG_addinfo = function(L, msg, src, line) { if (src) buff = lobject.luaO_chunkid(src, luaconf.LUA_IDSIZE); - L.stack[L.top++] = new TValue(CT.LUA_TLNGSTR, `${buff}:${line}: ${msg}`); // We don't need to check for overflow here + L.stack[L.top++] = L.l_G.intern(lua.to_luastring(`${buff}:${line}: ${msg}`)); // We don't need to check for overflow here return L.stack[L.top - 1]; }; @@ -501,7 +501,7 @@ const luaG_tointerror = function(L, p1, p2) { if (temp === false) p2 = p1; luaG_runerror(L, `number${varinfo(L, p2)} has no integer representation`); -} +}; module.exports.lua_getstack = lua_getstack; module.exports.lua_getinfo = lua_getinfo; -- cgit v1.2.3-54-g00ecf