summaryrefslogtreecommitdiff
path: root/src/lundump.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-05 15:46:17 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-05 15:46:17 +0200
commitd4aa8fa4e548ef348753ef765f2680f1a188d145 (patch)
tree92663657a52eb529ccc5c64ff70622ae2412deff /src/lundump.js
parent7ef345bee73f6cc843b0d82866d036a3ac5829ca (diff)
parentc7b6fa63459d411cd7b20ea0de3dc2f4cf7e2a2f (diff)
downloadfengari-d4aa8fa4e548ef348753ef765f2680f1a188d145.tar.gz
fengari-d4aa8fa4e548ef348753ef765f2680f1a188d145.tar.bz2
fengari-d4aa8fa4e548ef348753ef765f2680f1a188d145.zip
Merge remote-tracking branch 'daurnimator/fix-errors'
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 26405d6..1c0d4c7 100644
--- a/src/lundump.js
+++ b/src/lundump.js
@@ -285,7 +285,7 @@ class BytecodeParser {
this.L.stack[this.L.top] = new lobject.TValue(defs.CT.LUA_TLCL, cl);
this.L.top++;
- cl.p = new lfunc.Proto();
+ cl.p = new lfunc.Proto(this.L);
this.readFunction(cl.p);