diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-05-11 11:18:26 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-05-11 11:18:26 +0200 |
commit | 57ca9b375d262d98645d219bbdd5969e0c0c85aa (patch) | |
tree | 68cd798066520a8aa38ac2c4361f18af2200dbaa | |
parent | f42baa3087685417a280abf8bb4283afb9d5f3f9 (diff) | |
download | fengari-57ca9b375d262d98645d219bbdd5969e0c0c85aa.tar.gz fengari-57ca9b375d262d98645d219bbdd5969e0c0c85aa.tar.bz2 fengari-57ca9b375d262d98645d219bbdd5969e0c0c85aa.zip |
Don't use luaO_nilobject when deleting table entry
-rw-r--r-- | src/ltable.js | 2 |
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); } }; |