diff options
author | daurnimator <quae@daurnimator.com> | 2017-06-19 01:07:19 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-06-19 01:07:19 +1000 |
commit | 154b9ee1d9902a317ec61ba61ced08ad5f4fc473 (patch) | |
tree | 0bc53599ba205e9d0d653d88893a367dd21151ec /src/llex.js | |
parent | 5928a46812aa108d7388e5ad3ed0c9aa4b6d5a61 (diff) | |
download | fengari-154b9ee1d9902a317ec61ba61ced08ad5f4fc473.tar.gz fengari-154b9ee1d9902a317ec61ba61ced08ad5f4fc473.tar.bz2 fengari-154b9ee1d9902a317ec61ba61ced08ad5f4fc473.zip |
src/llex.js: Use SemInfo constructor
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; |