summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_5/RegExp/regress-613820-1.js
blob: e5e755b24aa3c32e89060ae1ae2d1c71a02fd5db (plain)
1
2
3
4
5
6
7
8
9
/* Back reference is actually a forwards reference. */
var re = /(\2(a)){2}/;
var str = 'aaa';
var actual = re.exec(str);
var expected = makeExpectedMatch(['aa', 'a', 'a'], 0, str);
checkRegExpMatch(actual, expected);

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