From 18fde8bd2285ad45baa9f9b2f16b40fb6bd3b2dd Mon Sep 17 00:00:00 2001 From: daurnimator Date: Thu, 27 Apr 2017 17:20:28 +1000 Subject: LClosure and CClosure shouldn't subclass TValue --- src/lundump.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lundump.js') diff --git a/src/lundump.js b/src/lundump.js index 3d7233c..9162501 100644 --- a/src/lundump.js +++ b/src/lundump.js @@ -282,7 +282,7 @@ class BytecodeParser { let cl = new lobject.LClosure(this.L, this.readByte()); - this.L.stack[this.L.top] = cl; + this.L.stack[this.L.top] = new lobject.TValue(defs.CT.LUA_TLCL, cl); this.L.top++; cl.p = new Proto(); -- cgit v1.2.3-54-g00ecf