blob: 93bb2d7b084bef39288647e3f87f85c0544f315f [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function test() {
var a, b;
return ([a, b] = [1, 2]);
}
noInline(test);
for (var i = 0; i < 1e4; ++i) {
var result = test();
shouldBe(result.length, 2);
shouldBe(result[0], 1);
shouldBe(result[1], 2);
}