[Webkit-unassigned] [Bug 216439] New: `undefined is not a function` error occurs in destructuring assignment.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Sep 12 10:08:47 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=216439

            Bug ID: 216439
           Summary: `undefined is not a function` error occurs in
                    destructuring assignment.
           Product: WebKit
           Version: Safari 13
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kherootz at gmail.com

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200912/67c206d5/attachment.htm>


More information about the webkit-unassigned mailing list