From 0d4162d076423e92424de8ae507354cf9d165bdc Mon Sep 17 00:00:00 2001 From: daurnimator Date: Thu, 18 May 2017 11:27:22 +1000 Subject: src/lparser.js: Fix pushing raw Table onto stack --- src/lparser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2