Merge pull request #693 from babel/trailing-comma-rest-param

Raise error if trailing comma after rest element in async func params
This commit is contained in:
Brian Ng
2017-08-25 20:12:59 -05:00
committed by GitHub
6 changed files with 38 additions and 2 deletions

View File

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

View File

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

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)"
}