summaryrefslogtreecommitdiff
path: root/src/lparser.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-18 11:27:22 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-18 11:27:22 +1000
commit0d4162d076423e92424de8ae507354cf9d165bdc (patch)
tree88f1ddce6839548f0f938ec905d726b1fb2fa38c /src/lparser.js
parent59f167897e94fb26105db123b9203c84e30d2342 (diff)
downloadfengari-0d4162d076423e92424de8ae507354cf9d165bdc.tar.gz
fengari-0d4162d076423e92424de8ae507354cf9d165bdc.tar.bz2
fengari-0d4162d076423e92424de8ae507354cf9d165bdc.zip
src/lparser.js: Fix pushing raw Table onto stack
Diffstat (limited to 'src/lparser.js')
-rw-r--r--src/lparser.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lparser.js b/src/lparser.js
index 324425c..215a566 100644
--- a/src/lparser.js
+++ b/src/lparser.js
@@ -1558,7 +1558,7 @@ const luaY_parser = function(L, z, buff, dyd, name, firstchar) {
let cl = lfunc.luaF_newLclosure(L, 1); /* create main closure */
L.stack[L.top++] = new TValue(defs.CT.LUA_TLCL, cl);
lexstate.h = ltable.luaH_new(L); /* create table for scanner */
- L.stack[L.top++] = lexstate.h;
+ L.stack[L.top++] = new TValue(defs.CT.LUA_TTABLE, lexstate.h);
funcstate.f = cl.p = new Proto(L);
funcstate.f.source = lstring.luaS_new(L, name);
lexstate.buff = buff;