From 154b9ee1d9902a317ec61ba61ced08ad5f4fc473 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 19 Jun 2017 01:07:19 +1000 Subject: src/llex.js: Use SemInfo constructor --- src/llex.js | 12 ++---------- 1 file 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; -- cgit v1.2.3-70-g09d2