[Webkit-unassigned] [Bug 185943] New: JavascriptCore should return destructuring elements with trailing commas in iterable patterns

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 24 06:09:41 PDT 2018


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

            Bug ID: 185943
           Summary: JavascriptCore should return destructuring elements
                    with trailing commas in iterable patterns
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: gfablima at gmail.com

Hi everyone,
it was observed that javascriptcore have unexpected behaviour when I'm trying to return a destructuring list inside a function.

OS: Ubuntu 16.04 x64
Version: 606.1.9.4

Steps to reproduce:
function test (){
    return ( [a,b,] = [1, 2] );
}

print( [a,b,] = [1, 2] )
print( test() )

Actual Results:
- 1,2
- undefined

Expected Results:
- 1,2
- 1,2

Notes: V8, Chakra and SpiderMonkey works as expected.

-- 
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/20180524/8f470100/attachment.html>


More information about the webkit-unassigned mailing list