[Webkit-unassigned] [Bug 158020] [ESNext] Support trailing commas in function param lists

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 26 16:15:24 PDT 2016


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

Keith Miller <keith_miller at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #279795|review?, commit-queue?      |review+, commit-queue-
              Flags|                            |

--- Comment #15 from Keith Miller <keith_miller at apple.com> ---
Comment on attachment 279795
  --> https://bugs.webkit.org/attachment.cgi?id=279795
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=279795&action=review

r=me with comments.

> Source/JavaScriptCore/tests/stress/trailing-comma-in-function-paramters.js:54
> +test(eval('(function(a, b, c){ return a + b + c; })("A", "B", "C",)'), 'ABC');

I think it would also be useful to add the following tests:

test((function(a,) { return arguments.length; })(), 1);
test((function(a,) { }).length, 1);

-- 
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/20160526/50d8bd45/attachment.html>


More information about the webkit-unassigned mailing list