diff options
Diffstat (limited to 'src/llex.js')
-rw-r--r-- | src/llex.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/llex.js b/src/llex.js index 4fd061e..dc0b382 100644 --- a/src/llex.js +++ b/src/llex.js @@ -176,21 +176,13 @@ const inclinenumber = function(ls) { const luaX_setinput = function(L, ls, z, source, firstchar) { ls.t = { token: 0, - seminfo: { - i: NaN, - r: NaN, - ts: null - } + seminfo: new SemInfo() }; ls.L = L; ls.current = firstchar; ls.lookahead = { token: R.TK_EOS, - seminfo: { - i: NaN, - r: NaN, - ts: null - } + seminfo: new SemInfo() }; ls.z = z; ls.fs = null; |