-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: raise error for trailing commas after rest properties (fixes #310)…
… (#323)
- Loading branch information
1 parent
9d86ba5
commit 652990a
Showing
5 changed files
with
462 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...fixtures/ecma-features/experimentalObjectRestSpread/invalid-rest-trailing-comma.result.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
index: 16, | ||
lineNumber: 1, | ||
column: 17, | ||
message: "Unexpected trailing comma after rest property" | ||
}; |
1 change: 1 addition & 0 deletions
1
tests/fixtures/ecma-features/experimentalObjectRestSpread/invalid-rest-trailing-comma.src.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var { x, y, ...z, } = foo; |
Oops, something went wrong.