summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/regexp/match-indices-warp.js
blob: 634d368aeee5a1b2a9f09ddfe916bb4dd3f82a24 (plain)
1
2
3
4
5
6
7
8
var re = /A*(B)A*/d;
for (var i = 0; i < 100; i++) {
    var match = re.exec("xxxxxAAABAxxxxx");
    assertEq(match.indices[0][0], 5);
    assertEq(match.indices[0][1], 10);
    assertEq(match.indices[1][0], 8);
    assertEq(match.indices[1][1], 9);
}