summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testApply.js
blob: 73e359228493ea31486c00f26c4b6348b582cc2a (plain)
1
2
3
4
5
6
7
function testApply() {
    var q = [];
    for (var i = 0; i < 10; ++i)
        Array.prototype.push.apply(q, [5]);
    return q.join(",");
}
assertEq(testApply(), "5,5,5,5,5,5,5,5,5,5");