summaryrefslogtreecommitdiff
path: root/src/ldebug.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-03-12 10:50:19 +0100
committerBenoit Giannangeli <giann@users.noreply.github.com>2017-03-13 11:03:24 +0100
commit632cf08572b35e8a350ac8b1f9d5bf77fb4e7b95 (patch)
treef44c8921491b40561b7709cd0c081c931ba18f6a /src/ldebug.js
parent883d01f0a707a03ef5b183cd2d03046fdc544e0e (diff)
downloadfengari-632cf08572b35e8a350ac8b1f9d5bf77fb4e7b95.tar.gz
fengari-632cf08572b35e8a350ac8b1f9d5bf77fb4e7b95.tar.bz2
fengari-632cf08572b35e8a350ac8b1f9d5bf77fb4e7b95.zip
[Strings] ldebug.js, ldo.js, lfunc.js
Diffstat (limited to 'src/ldebug.js')
-rw-r--r--src/ldebug.js8
1 files changed, 4 insertions, 4 deletions
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;