diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-21 20:49:22 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-21 20:51:02 +1000 |
commit | f7550508fef2ae2f6c64b1f5f359af5f65bb62fd (patch) | |
tree | 64be33e524df651fa70a3f9f8630a0dd91a3e1cf /src/llex.js | |
parent | 93c8906ca2f77270054edb9f7669ca9b06f80b6f (diff) | |
download | fengari-f7550508fef2ae2f6c64b1f5f359af5f65bb62fd.tar.gz fengari-f7550508fef2ae2f6c64b1f5f359af5f65bb62fd.tar.bz2 fengari-f7550508fef2ae2f6c64b1f5f359af5f65bb62fd.zip |
src/lobject.js: Check that there is no trailing junk from lua_strx2number
Also stop adding trailing null byte in llex.js
Diffstat (limited to 'src/llex.js')
-rw-r--r-- | src/llex.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llex.js b/src/llex.js index d617e7c..998ab0e 100644 --- a/src/llex.js +++ b/src/llex.js @@ -240,7 +240,7 @@ const read_numeral = function(ls, seminfo) { else break; } - save(ls, 0); + // save(ls, 0); let obj = lobject.luaO_str2num(ls.buff.buffer); if (obj === false) /* format error? */ |