From 195db4ee20fb6b593e9b52a8d671ff088da26336 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 12 May 2017 11:36:40 +1000 Subject: src/ltable.js: Clear .value for dead table entries Saves a TValue allocation --- src/ltable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3-70-g09d2