summaryrefslogtreecommitdiff
path: root/src/lcode.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lcode.js')
-rw-r--r--src/lcode.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lcode.js b/src/lcode.js
index c20c978..fac7d37 100644
--- a/src/lcode.js
+++ b/src/lcode.js
@@ -513,6 +513,7 @@ const luaK_stringK = function(fs, s) {
** are no "precision" problems.
*/
const luaK_intK = function(fs, n) {
+ /* FIXME: shouldn't use string as key. need to use pointer */
let k = new TValue(CT.LUA_TLNGSTR, defs.to_luastring(`${n}`));
let o = new TValue(CT.LUA_TNUMINT, n);
return addk(fs, k, o);