WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
216439
`undefined is not a function` error occurs in destructuring assignment.
https://bugs.webkit.org/show_bug.cgi?id=216439
Summary
`undefined is not a function` error occurs in destructuring assignment.
HyeockJin Kim
Reported
2020-09-12 10:08:47 PDT
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
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-09-19 10:09:12 PDT
<
rdar://problem/69217436
>
HyeockJin Kim
Comment 2
2020-09-23 10:49:37 PDT
Can I try this issue?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug