| Summary: | Destructuring assignment: unintelligible error message | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Claude Pache <claude.pache> |
| Component: | JavaScriptCore | Assignee: | Yusuke Suzuki <ysuzuki> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | ggaren, joepeck, ysuzuki |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Yes, this is my fault. It occurs when looking up the @@iterator from the non object value (`1`). |
In the console: var [x] = 1 ▶ TypeError: [x] is not a function. (In '[x]', '[x]' is undefined) WAT?