summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/RegExp/regress-613820-2.js
blob: 5db7244ba27319a7d529b943152534881733b54d (plain)
1
2
3
4
5
6
7
8
9
/* Resetting of inner capture groups across quantified capturing parens. */
var re = /(?:(f)(o)(o)|(b)(a)(r))*/;
var str = 'foobar';
var actual = re.exec(str);
var expected = makeExpectedMatch(['foobar', undefined, undefined, undefined, 'b', 'a', 'r'], 0, str);
checkRegExpMatch(actual, expected);

if (typeof reportCompare === 'function')
    reportCompare(true, true);