blob: 9682bc54e3936c375c87310a6e80f942b66c4ff9 [file] [log] [blame] [edit]
function shouldBe(actual, expected)
{
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function test()
{
return [...[1.2, 2.3, 3.4]];
}
noInline(test);
for (var i = 0; i < testLoopCount; ++i) {
var [a, b, c] = test();
shouldBe(a, 1.2);
shouldBe(b, 2.3);
shouldBe(c, 3.4);
}