diff options
author | daurnimator <quae@daurnimator.com> | 2017-12-13 13:36:59 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-12-13 15:04:06 +1100 |
commit | eb71fa819bf294cb145360ce2d4697200b30bd11 (patch) | |
tree | 23596eafe2133461b2fa1da142b3fff668db6985 /src | |
parent | 66294fd31720f5073fb7cc1540f67e76cb638859 (diff) | |
download | fengari-eb71fa819bf294cb145360ce2d4697200b30bd11.tar.gz fengari-eb71fa819bf294cb145360ce2d4697200b30bd11.tar.bz2 fengari-eb71fa819bf294cb145360ce2d4697200b30bd11.zip |
src/llex.js: Fix incorrect slice length
Diffstat (limited to 'src')
-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 464c98e..5bcd744 100644 --- a/src/llex.js +++ b/src/llex.js @@ -325,7 +325,7 @@ const read_long_string = function(ls, seminfo, sep) { } if (seminfo) - seminfo.ts = luaX_newstring(ls, ls.buff.buffer.slice(2 + sep, 2 + sep - 2 * (2 + sep))); + seminfo.ts = luaX_newstring(ls, ls.buff.buffer.slice(2 + sep, ls.buff.n - (2 + sep))); }; const esccheck = function(ls, c, msg) { |