summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testDestructuring.js
blob: 05a267802b1207a2a24b0ac59223134a440521d5 (plain)
1
2
3
4
5
6
7
8
9
function testDestructuring() {
    var t = 0;
    for (var i = 0; i < 9; ++i) {
        var [r, g, b] = [1, 1, 1];
        t += r + g + b;
    }
    return t
}
assertEq(testDestructuring(), (9) * 3);