summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-12 11:36:40 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-12 11:43:14 +1000
commit195db4ee20fb6b593e9b52a8d671ff088da26336 (patch)
treec3d238cd280fa0f071211a131e318ebde36948e7 /src
parentd379aefe60b1c41618da2073dc0af2ccaa7f8045 (diff)
downloadfengari-195db4ee20fb6b593e9b52a8d671ff088da26336.tar.gz
fengari-195db4ee20fb6b593e9b52a8d671ff088da26336.tar.bz2
fengari-195db4ee20fb6b593e9b52a8d671ff088da26336.zip
src/ltable.js: Clear .value for dead table entries
Saves a TValue allocation
Diffstat (limited to 'src')
-rw-r--r--src/ltable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ltable.js b/src/ltable.js
index b609ad0..7551160 100644
--- a/src/ltable.js
+++ b/src/ltable.js
@@ -67,7 +67,7 @@ const mark_dead = function(t, hash) {
let e = t.strong.get(hash);
if (e) {
e.key.setdeadvalue();
- e.value = new lobject.TValue(CT.LUA_TNIL, null);
+ e.value = void 0;
let next = e.n;
let prev = e.p;
e.p = void 0; /* no need to know previous item any more */