summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/regexpLastIndexReset.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-03-27 13:22:30 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-03-27 13:22:30 +0200
commit8d5ec757ece850fb7ad5c712868f305636e41177 (patch)
tree92acdb7783ab29bdfa2837ad54afa491c2c42867 /js/src/jit-test/tests/basic/regexpLastIndexReset.js
parente19749682050ff716fc9ff3bbc05ee3911570670 (diff)
parent5fd5b2ac2f396eb1d8707a691aa26ad159ad25e3 (diff)
downloadUXP-8d5ec757ece850fb7ad5c712868f305636e41177.tar
UXP-8d5ec757ece850fb7ad5c712868f305636e41177.tar.gz
UXP-8d5ec757ece850fb7ad5c712868f305636e41177.tar.lz
UXP-8d5ec757ece850fb7ad5c712868f305636e41177.tar.xz
UXP-8d5ec757ece850fb7ad5c712868f305636e41177.zip
Merge remote-tracking branch 'janek/js_regexp_lastindex_1'
Diffstat (limited to 'js/src/jit-test/tests/basic/regexpLastIndexReset.js')
-rw-r--r--js/src/jit-test/tests/basic/regexpLastIndexReset.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jit-test/tests/basic/regexpLastIndexReset.js b/js/src/jit-test/tests/basic/regexpLastIndexReset.js
index 2a54d8ef5..dbe3c3b76 100644
--- a/js/src/jit-test/tests/basic/regexpLastIndexReset.js
+++ b/js/src/jit-test/tests/basic/regexpLastIndexReset.js
@@ -7,7 +7,7 @@ function test() {
pattern.lastIndex = 3;
var result = pattern.exec(string);
assertEq(result, null);
- assertEq(pattern.lastIndex, 0);
+ assertEq(pattern.lastIndex, 3);
}
for (let i = 0; i < 10; i++) {
@@ -18,7 +18,7 @@ function test2() {
pattern.lastIndex = 3;
var result = pattern.test(string);
assertEq(result, false);
- assertEq(pattern.lastIndex, 0);
+ assertEq(pattern.lastIndex, 3);
}
for (let i = 0; i < 10; i++) {