aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-29 00:15:41 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-29 00:15:41 +0200
commit1ba592ce64eed9c941bebb0ec014e7c71c3b4708 (patch)
tree16aaaa6c00d86fe2988ba6d857397d8bea066277 /src
parent93ef5a93ddcbcffb1c853b4f29712893989452b7 (diff)
downloadfengari-1ba592ce64eed9c941bebb0ec014e7c71c3b4708.tar.gz
fengari-1ba592ce64eed9c941bebb0ec014e7c71c3b4708.tar.bz2
fengari-1ba592ce64eed9c941bebb0ec014e7c71c3b4708.zip
lstrlib.js: pattern index treated as pattern itself
Diffstat (limited to 'src')
-rw-r--r--src/lstrlib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lstrlib.js b/src/lstrlib.js
index 8e8b58e..c0dc2d2 100644
--- a/src/lstrlib.js
+++ b/src/lstrlib.js
@@ -1029,7 +1029,7 @@ const match = function(ms, s, p) {
case 'b'.charCodeAt(0): { /* balanced string? */
s = matchbalance(ms, s, p + 2);
if (s !== null) {
- p = p.slice(4);
+ p += 4;
gotoinit = true;
}
break;