[Webkit-unassigned] [Bug 162358] Disallow trailing commas in arrow function arguments, e.g. (X, )=>1

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Dec 3 03:09:32 PST 2016


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

--- Comment #4 from GSkachkov <gskachkov at gmail.com> ---
He he. 
It is not bug it is a feature of ECMA 2017 
Before proposal of this syntax was on stage 3, at beginning of November it was merged to master https://github.com/tc39/ecma262/pull/711

In spec https://tc39.github.io/ecma262/#prod-FormalParameters can be found:

FormalParameters can be:
FormalParameterList[?Yield, ?Await],

Actually both Chrome Canary (57.0.2939.0 canary (64-bit)) and FireFox Nightly (52.0a1 (2016-10-15) (64-bit)) support this syntax now

-- 
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/20161203/0d97f378/attachment.html>


More information about the webkit-unassigned mailing list