[Webkit-unassigned] [Bug 158030] New: [ES6] Different errors during parsing ordinary function and arrow function

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 24 11:21:44 PDT 2016


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

            Bug ID: 158030
           Summary: [ES6] Different errors during parsing ordinary
                    function and arrow function
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: gskachkov at gmail.com

It seems that we have different error message in case of errors in parsing of the function parameters
>>> var arr = (a, ...last,)=> {return last;};
Unexpected token '...'
>>> var f = function (a, ...last,) {return last;};
Unexpected token ','. Rest parameter should be the last parameter in a function declaration.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160524/8ebfa2c3/attachment.html>


More information about the webkit-unassigned mailing list