diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-08 14:27:25 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-08 15:31:45 +1000 |
commit | 97bb7386d33d21b784e21fd4067e77c6c3084d71 (patch) | |
tree | b3737657e3d027577f4294169fa97933d0cf955c /src/lparser.js | |
parent | 003c72abdc3c398e94dc66f7eb997be654f59463 (diff) | |
download | fengari-97bb7386d33d21b784e21fd4067e77c6c3084d71.tar.gz fengari-97bb7386d33d21b784e21fd4067e77c6c3084d71.tar.bz2 fengari-97bb7386d33d21b784e21fd4067e77c6c3084d71.zip |
LexState.h is a Table not a TValue
Diffstat (limited to 'src/lparser.js')
-rw-r--r-- | src/lparser.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lparser.js b/src/lparser.js index c90ff01..740fab1 100644 --- a/src/lparser.js +++ b/src/lparser.js @@ -1557,7 +1557,7 @@ const luaY_parser = function(L, z, buff, dyd, name, firstchar) { let funcstate = new FuncState(); let cl = lfunc.luaF_newLclosure(L, 1); /* create main closure */ L.stack[L.top++] = new TValue(defs.CT.LUA_TLCL, cl); - lexstate.h = new TValue(defs.CT.LUA_TTABLE, ltable.luaH_new(L)); /* create table for scanner */ + lexstate.h = ltable.luaH_new(L); /* create table for scanner */ L.stack[L.top++] = lexstate.h; funcstate.f = cl.p = new Proto(L); funcstate.f.source = lstring.luaS_new(L, name); |