summaryrefslogtreecommitdiff
path: root/src/lcode.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-05 13:27:04 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-05 13:32:08 +1000
commitcdb82a10424543724388a00df5fb10b11efa8884 (patch)
tree5962f8765e8029fa94f9c5c72fe3baa9d6399fc3 /src/lcode.js
parent9624b3bb70f4d28f468d34503c919c9bc3eee11b (diff)
downloadfengari-cdb82a10424543724388a00df5fb10b11efa8884.tar.gz
fengari-cdb82a10424543724388a00df5fb10b11efa8884.tar.bz2
fengari-cdb82a10424543724388a00df5fb10b11efa8884.zip
Add a FIXME, remove a TODO, edit a comment
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);