Bug 216439

Summary: `undefined is not a function` error occurs in destructuring assignment.
Product: WebKit Reporter: HyeockJin Kim <kherootz>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: Unspecified   
OS: Unspecified   

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?