forked from jquery/esprima
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Async constructor error message should follow V8
Fix jquery#1652 Closes jquerygh-1653
- Loading branch information
Showing
3 changed files
with
9 additions
and
4 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
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
2 changes: 1 addition & 1 deletion
2
test/fixtures/es2017/async/methods/invalid-async-class-constructor.failure.json
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"index":16,"lineNumber":1,"column":17,"message":"Error: Line 1: Unexpected identifier","description":"Unexpected identifier"} | ||
{"index":16,"lineNumber":1,"column":17,"message":"Error: Line 1: Class constructor may not be an async method","description":"Class constructor may not be an async method"} |