aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-11 23:08:57 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-12 00:12:32 +1000
commit0e871348d81de72af3db293fdd28634794b28f56 (patch)
tree0da1132fbcc84bdec3baa0f405ea23fc554305e6 /src
parent68fe72a336c7e732164e2eacfdc8c86a25939957 (diff)
downloadfengari-0e871348d81de72af3db293fdd28634794b28f56.tar.gz
fengari-0e871348d81de72af3db293fdd28634794b28f56.tar.bz2
fengari-0e871348d81de72af3db293fdd28634794b28f56.zip
src/ltable.js: Reset dead_hashes after clearing out
Diffstat (limited to 'src')
-rw-r--r--src/ltable.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ltable.js b/src/ltable.js
index 5eae939..32193c8 100644
--- a/src/ltable.js
+++ b/src/ltable.js
@@ -43,6 +43,7 @@ const clean_dead_keys = function(t) {
for (let i=0; i<t.dead_hashes.length; i++) {
t.strong.delete(t.dead_hashes[i]);
}
+ t.dead_hashes.length = 0;
};
const luaH_new = function(L) {