forked from jquery/esprima
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure a comma between imported default binding and named imports.
Fixes jquery#1046 Closes jquerygh-1221
- Loading branch information
Showing
6 changed files
with
50 additions
and
33 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
4 changes: 2 additions & 2 deletions
4
test/fixtures/ES6/import-declaration/invalid-import-default.module.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,7 +1,7 @@ | ||
{ | ||
"index": 6, | ||
"index": 7, | ||
"lineNumber": 1, | ||
"column": 7, | ||
"column": 8, | ||
"message": "Error: Line 1: Unexpected token default", | ||
"description": "Unexpected token default" | ||
} |
1 change: 1 addition & 0 deletions
1
test/fixtures/ES6/import-declaration/invalid-import-missing-comma.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 @@ | ||
import foo { bar } from "bar"; |
7 changes: 7 additions & 0 deletions
7
test/fixtures/ES6/import-declaration/invalid-import-missing-comma.module.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"index": 10, | ||
"lineNumber": 1, | ||
"column": 11, | ||
"message": "Error: Line 1: Unexpected token {", | ||
"description":"Unexpected token {" | ||
} |
1 change: 1 addition & 0 deletions
1
test/fixtures/ES6/import-declaration/invalid-import-specifiers.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 @@ | ||
import foo, from "bar"; |
7 changes: 7 additions & 0 deletions
7
test/fixtures/ES6/import-declaration/invalid-import-specifiers.module.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"index": 12, | ||
"lineNumber": 1, | ||
"column": 13, | ||
"message": "Error: Line 1: Unexpected identifier", | ||
"description": "Unexpected identifier" | ||
} |