WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
158030
[ES6] Different errors during parsing ordinary function and arrow function
https://bugs.webkit.org/show_bug.cgi?id=158030
Summary
[ES6] Different errors during parsing ordinary function and arrow function
GSkachkov
Reported
2016-05-24 11:21:44 PDT
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Caio Lima
Comment 1
2016-06-27 19:39:45 PDT
I think the report of ordinary functions more clear. I think we should give same syntax error to them. I am interested working in this =).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug