Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In Chrome 38, DOM collections have particularly buggy behavior with respect to iteration—specifically, `Symbol.iterator in domCollection` evaluates to `true`, but `domCollection[Symbol.iterator]` is undefined! This bug is [mentioned in a `core-js` issue from around that time](zloirock/core-js#37 (comment)). Transpiled array destructuring uses iteration in its implementation, and thus breaks when attempting to destructure a DOM collection in the affected Chrome version(s). Because of the inconsistent feedback given by the runtime, `core-js` isn’t able to effectively polyfill iteration on this version. So, just don’t destructure DOM collections—instead, do it the old fashioned way.
- Loading branch information