summaryrefslogtreecommitdiff
path: root/src/lundump.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-27 17:20:28 +1000
committerBenoit Giannangeli <giann008@gmail.com>2017-04-28 14:15:58 +0200
commit18fde8bd2285ad45baa9f9b2f16b40fb6bd3b2dd (patch)
tree57a32acf8fc5f7149c94a8e979ed39b9dba7e912 /src/lundump.js
parent4cd7e4062219ccffbbc9e397e1ab599c26a3ae76 (diff)
downloadfengari-18fde8bd2285ad45baa9f9b2f16b40fb6bd3b2dd.tar.gz
fengari-18fde8bd2285ad45baa9f9b2f16b40fb6bd3b2dd.tar.bz2
fengari-18fde8bd2285ad45baa9f9b2f16b40fb6bd3b2dd.zip
LClosure and CClosure shouldn't subclass TValue
Diffstat (limited to 'src/lundump.js')
-rw-r--r--src/lundump.js2
1 files changed, 1 insertions, 1 deletions
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();