summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testRegexpGet.js
blob: c8900098fbb8430cc388f288526996c7523fd09b (plain)
1
2
3
4
5
6
7
8
function testRegexpGet() {
    var re = /hi/;
    var a = [];
    for (let i = 0; i < 5; ++i)
        a.push(re.source);
    return a.toString();
}
assertEq(testRegexpGet(), "hi,hi,hi,hi,hi");