aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-13 13:36:59 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-13 15:04:06 +1100
commiteb71fa819bf294cb145360ce2d4697200b30bd11 (patch)
tree23596eafe2133461b2fa1da142b3fff668db6985 /src
parent66294fd31720f5073fb7cc1540f67e76cb638859 (diff)
downloadfengari-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.js2
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) {