summaryrefslogtreecommitdiff
path: root/src/lstrlib.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-21 09:06:37 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-21 09:06:37 +0100
commit6bf508f234654b1b0c7afa04797601d14c150934 (patch)
tree505f463ecdd0b4be4f0ce3e6446183774d406783 /src/lstrlib.js
parent66292a6a85cf22cae31520ea4d08c76f544e338a (diff)
parent9ac1d380dd1da894c6317845ea3234124663714b (diff)
downloadfengari-6bf508f234654b1b0c7afa04797601d14c150934.tar.gz
fengari-6bf508f234654b1b0c7afa04797601d14c150934.tar.bz2
fengari-6bf508f234654b1b0c7afa04797601d14c150934.zip
Merge branch 'master' into feature/match
Diffstat (limited to 'src/lstrlib.js')
-rw-r--r--src/lstrlib.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lstrlib.js b/src/lstrlib.js
index 3872cb2..cd9278d 100644
--- a/src/lstrlib.js
+++ b/src/lstrlib.js
@@ -13,9 +13,6 @@ const CT = lua.constant_types;
const sL_ESC = '%';
const L_ESC = sL_ESC.charCodeAt(0);
-// (sizeof(size_t) < sizeof(int) ? MAX_SIZET : (size_t)(INT_MAX))
-const MAXSIZE = Number.MAX_SAFE_INTEGER;
-
/*
** maximum number of captures that a pattern can do during
** pattern-matching. This limit is arbitrary, but must fit in
@@ -23,6 +20,10 @@ const MAXSIZE = Number.MAX_SAFE_INTEGER;
*/
const LUA_MAXCAPTURES = 32;
+// (sizeof(size_t) < sizeof(int) ? MAX_SIZET : (size_t)(INT_MAX))
+const MAXSIZE = Number.MAX_SAFE_INTEGER;
+
+
/* translate a relative string position: negative means back from end */
const posrelat = function(pos, len) {
if (pos >= 0) return pos;