Debian Codegraph @

js/src/jit-test/tests/regexp/match-indices-warp.js

raw
1 var re = /A*(B)A*/d;
2 for (var i = 0; i < 100; i++) {
3 var match = re.exec("xxxxxAAABAxxxxx");
4 assertEq(match.indices[0][0], 5);
5 assertEq(match.indices[0][1], 10);
6 assertEq(match.indices[1][0], 8);
7 assertEq(match.indices[1][1], 9);
8 }