diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/regexp/rope-inputs.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/regexp/rope-inputs.js b/js/src/jit-test/tests/regexp/rope-inputs.js new file mode 100644 index 0000000000..d8f4b4de94 --- /dev/null +++ b/js/src/jit-test/tests/regexp/rope-inputs.js @@ -0,0 +1,10 @@ +function test() { + var re = /abc(.+)z/; + for (var i = 0; i < 100; i++) { + assertEq(re.exec(newRope("abcd", "xyz"))[1], "dxy"); + assertEq(re.test(newRope("abcd", "xyz")), true); + assertEq(re[Symbol.search](newRope(".abcd", "xyz")), 1); + assertEq(re[Symbol.match](newRope("abcd", "xyz"))[1], "dxy"); + } +} +test(); |