diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-05 17:57:45 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-05 17:57:45 +1000 |
commit | c706c851f52c0b56a65dbaf74bafb66f36a9c521 (patch) | |
tree | 297d1325010ac164d14c4afc46babeebca7e5a64 /src/lundump.js | |
parent | 91be09a37c65b6b9247c7e3cdf4e189627226511 (diff) | |
download | fengari-c706c851f52c0b56a65dbaf74bafb66f36a9c521.tar.gz fengari-c706c851f52c0b56a65dbaf74bafb66f36a9c521.tar.bz2 fengari-c706c851f52c0b56a65dbaf74bafb66f36a9c521.zip |
Always pass lua_State to Proto constructor
Diffstat (limited to 'src/lundump.js')
-rw-r--r-- | src/lundump.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lundump.js b/src/lundump.js index 5d158bd..541adbb 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); |