Debian Codegraph @

js/src/jit-test/tests/regexp/rope-inputs.js

raw
1 function test() {
2 var re = /abc(.+)z/;
3 for (var i = 0; i < 100; i++) {
4 assertEq(re.exec(newRope("abcdefghijklmnopqrstuvw", "xyz"))[1], "defghijklmnopqrstuvwxy");
5 assertEq(re.test(newRope("abcdefghijklmnopqrstuvw", "xyz")), true);
6 assertEq(re[Symbol.search](newRope(".abcdefghijklmnopqrstuvw", "xyz")), 1);
7 assertEq(re[Symbol.match](newRope("abcdefghijklmnopqrstuvw", "xyz"))[1], "defghijklmnopqrstuvwxy");
8 }
9 }
10 test();