summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-11 11:18:26 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-11 11:18:26 +0200
commit57ca9b375d262d98645d219bbdd5969e0c0c85aa (patch)
tree68cd798066520a8aa38ac2c4361f18af2200dbaa
parentf42baa3087685417a280abf8bb4283afb9d5f3f9 (diff)
downloadfengari-57ca9b375d262d98645d219bbdd5969e0c0c85aa.tar.gz
fengari-57ca9b375d262d98645d219bbdd5969e0c0c85aa.tar.bz2
fengari-57ca9b375d262d98645d219bbdd5969e0c0c85aa.zip
Don't use luaO_nilobject when deleting table entry
-rw-r--r--src/ltable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ltable.js b/src/ltable.js
index 79c8215..52b5aee 100644
--- a/src/ltable.js
+++ b/src/ltable.js
@@ -116,7 +116,7 @@ const delete_hash = function(t, hash) {
let e = t.strong.get(hash);
if (e) {
e.key.setdeadvalue();
- e.value = lobject.luaO_nilobject;
+ e.value = new lobject.TValue(CT.LUA_TNIL, null);
t.dead_hashes.push(hash);
}
};