diff options
Diffstat (limited to 'src/lobject.js')
-rw-r--r-- | src/lobject.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/lobject.js b/src/lobject.js index d7751b3..f7d07d7 100644 --- a/src/lobject.js +++ b/src/lobject.js @@ -195,11 +195,9 @@ const table_index = function(table, key) { return v ? v : luaO_nilobject; }; -class LClosure extends TValue { +class LClosure { constructor(L, n) { - super(CT.LUA_TLCL, null); - this.p = null; this.nupvalues = n; @@ -213,22 +211,16 @@ class LClosure extends TValue { this.upvals = [ _ENV ]; - - this.value = this; } } -class CClosure extends TValue { +class CClosure { constructor(f, n) { - super(CT.LUA_TCCL, null); - this.f = f; this.nupvalues = n; this.upvalue = new Array(n); - - this.value = this; } } |