7 lines
225 B
JavaScript

var a = (() => [1, 2, 3])();
// !!! In order to run this test, this shouldn't be optimized using type inference
// If it's optimized and doesn't call toArray, please modify this test
// and exec.js
var [first, ...rest] = a;