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);