From 4c404c404c281f1872f0283acbaee97657f3e08b Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Sun, 12 Mar 2017 16:01:08 +0100 Subject: [Strings] lapi.js, lcode.js, llex.js, lparser.js --- src/lcode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lcode.js') diff --git a/src/lcode.js b/src/lcode.js index fedf1e2..c0ca1ff 100644 --- a/src/lcode.js +++ b/src/lcode.js @@ -513,7 +513,7 @@ const luaK_stringK = function(fs, s) { ** are no "precision" problems. */ const luaK_intK = function(fs, n) { - let k = new TValue(CT.LUA_TLNGSTR, `${n}`); + let k = new TValue(CT.LUA_TLNGSTR, lua.to_luastring(`${n}`)); let o = new TValue(CT.LUA_TNUMINT, n); return addk(fs, k, o); }; @@ -540,7 +540,7 @@ const boolK = function(fs, b) { ** Add nil to list of constants and return its index. */ const nilK = function(fs) { - return addk(fs, new TValue(CT.LUA_TLNGSTR, `null`), new TValue(CT.LUA_TNIL, null)); + return addk(fs, new TValue(CT.LUA_TLNGSTR, lua.to_luastring(`null`)), new TValue(CT.LUA_TNIL, null)); }; /* -- cgit v1.2.3-54-g00ecf