zenparsing / es6now

ECMAScript 6 to 5 Compiler and Runtime Environment
MIT License
29 stars 2 forks source link

Use Iteration for Array Destructuring #7

Closed zenparsing closed 10 years ago

zenparsing commented 10 years ago

When destructuring an array pattern, we need to use iterators instead of direct access to element indexes.

zenparsing commented 10 years ago

I can't imagine that going through a polyfilled array iterator for the common case can be anywhere near performant. Figuring this out will be low priority for now.

zenparsing commented 10 years ago

Done e773f1c697013bf69a294b73175df452adea825f