summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug691797-regexp-2.js
blob: a8c0c44864c4357bd2c9103dd1851f1c1c385148 (plain)
1
2
3
4
5
6
var re = /.*(a\w).*/i;
var str = "abccccccad";
for (var k = 0; k < 100; k++) {
  re.test(str);
  assertEq('ad', RegExp['$1']);
}