Raise error if trailing comma after rest element in async func params

This commit is contained in:
Brian Ng
2017-08-24 21:52:33 -05:00
parent c441afeaa6
commit 65db277364
4 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1 @@
async (...a,) => {};

View File

@@ -0,0 +1,3 @@
{
"throws": "A trailing comma is not permitted after the rest element (1:11)"
}