| 03:38 | <haxjs> | ```js |
| 03:38 | <haxjs> | let i = 0 |
| 03:38 | <haxjs> | const iter = { |
| 03:38 | <haxjs> | [Symbol.iterator]() { |
| 03:38 | <haxjs> | return { |
| 03:38 | <haxjs> | next() { |
| 03:38 | <haxjs> | return {value: ++i, done: i % 3 === 0} |
| 03:38 | <haxjs> | }, |
| 03:38 | <haxjs> | } |
| 03:38 | <haxjs> | } |
| 03:38 | <haxjs> | } |
| 03:38 | <haxjs> | const [a, b, c, ...d] = iter |
| 03:38 | <haxjs> | ``` |
| 03:42 | <haxjs> | `d` value: v8, xs, chakra returns `[4, 5]`, other engines empty array. V8,xs,chakra seems buggy. But not sure whether it's only engines bug or there are some issues in the spec. |