summaryrefslogtreecommitdiff
path: root/src/lcode.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-22 16:24:46 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-22 16:24:46 +1000
commit13ba814ab51f43718c1f07680012e6ee7815b16b (patch)
tree68e1e3fe1a00d5b0235b7aa0d543cc14506d3367 /src/lcode.js
parentedf9e47120f2098458519628335a7e90b2569b70 (diff)
downloadfengari-13ba814ab51f43718c1f07680012e6ee7815b16b.tar.gz
fengari-13ba814ab51f43718c1f07680012e6ee7815b16b.tar.bz2
fengari-13ba814ab51f43718c1f07680012e6ee7815b16b.zip
Checks for nil and NaN table keys
Diffstat (limited to 'src/lcode.js')
-rw-r--r--src/lcode.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lcode.js b/src/lcode.js
index 8f964d7..6515d93 100644
--- a/src/lcode.js
+++ b/src/lcode.js
@@ -439,7 +439,7 @@ const freeexps = function(fs, e1, e2) {
*/
const addk = function(fs, key, v) {
let f = fs.f;
- let idx = ltable.luaH_set(fs.ls.h, key); /* index scanner table */
+ let idx = ltable.luaH_set(fs.L, fs.ls.h, key); /* index scanner table */
if (idx.ttisinteger()) { /* is there an index there? */
let k = idx.value;
/* correct value? (warning: must distinguish floats from integers!) */