| Summary: | `undefined is not a function` error occurs in destructuring assignment. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | HyeockJin Kim <kherootz> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 13 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Can I try this issue? |
Safari: > ([a] = {0:1}) < TypeError: undefined is not a function (near '...[a]...') Firefox: ([a] = {0:1}) Uncaught TypeError: ({0:1}) is not iterable What steps will reproduce the problem? (1) Enter this statement in console : ([a] = {0:1}) What is the expected result? ([a] = {0:1}) is similar to ([a] = [...{0:1}]), so a `not iterable` error should occur. What happens instead? ([a] = {0:1}) VM89:1 Uncaught TypeError: undefined is not a function