Bug 216439 - `undefined is not a function` error occurs in destructuring assignment.
Summary: `undefined is not a function` error occurs in destructuring assignment.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: Safari 13
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-09-12 10:08 PDT by HyeockJin Kim
Modified: 2020-09-23 10:49 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description HyeockJin Kim 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
Comment 1 Radar WebKit Bug Importer 2020-09-19 10:09:12 PDT
<rdar://problem/69217436>
Comment 2 HyeockJin Kim 2020-09-23 10:49:37 PDT
Can I try this issue?