summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug580884-3.js
blob: fb22882b1016e80d39269de03a23880a8bf6bcba (plain)
1
2
3
4
5
6
7
8
9
10
function testDestructuring() {	
    eval();
    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);