[Webkit-unassigned] [Bug 216437] New: There is a problem with rest when using the bracket key in destructuring assignment

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Sep 12 09:03:30 PDT 2020


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

            Bug ID: 216437
           Summary: There is a problem with rest when using the bracket
                    key 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

version: 13.1.2(15609.3.5.1.3)

chrome:
> ({[1]: c, ...b} = {1: 4})
{1: 4}
> b
{}

Firefox:
> ({[1]: c, ...b} = {1: 4})
Object { 1: 4 }

> b
Object {  }

Safari:
> ({1: c, ...b} = {1: 4})
< {1: 4}
> b
< {}

> ({[1]: c, ...b} = {1: 4})
< {1: 4}
> b
< {1: 4}

When using the bracket key in destructuring assignment, rest ignores the bracket key.

If the issue hasn't been fixed yet, can I try this issue?

-- 
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/4f5fc2fa/attachment-0001.htm>


More information about the webkit-unassigned mailing list