From 7de17e1f67ec8da30d19450f6de05c8b5ad6e10e Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 5 May 2017 14:19:17 +1000 Subject: Remove .twups field It's used to track threads that should be traversed by the GC to find upvalues --- src/lstate.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/lstate.js') diff --git a/src/lstate.js b/src/lstate.js index d389419..51688e0 100644 --- a/src/lstate.js +++ b/src/lstate.js @@ -54,7 +54,6 @@ class lua_State { this.openupval = null; this.status = TS.LUA_OK; this.next = null; - this.twups = [this]; this.errorJmp = null; this.nny = 1; this.errfunc = 0; @@ -71,7 +70,6 @@ class global_State { this.l_registry = new lobject.TValue(CT.LUA_TNIL, null); this.panic = null; this.version = null; - this.twups = []; this.mt = new Array(LUA_NUMTAGS); } @@ -131,7 +129,6 @@ const preinit_thread = function(L, g) { L.stack = []; L.ci = null; L.nci = 0; - L.twups = [L]; /* thread has no upvalues */ L.errorJmp = null; L.nCcalls = 0; L.hook = null; -- cgit v1.2.3-54-g00ecf