-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad0543c
commit 75e80bc
Showing
31 changed files
with
2,111 additions
and
10 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: 3 additions & 3 deletions
6
tests/fixtures/ecma-version/11/dynamic-import/invalid-import-prop.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
"index": 16, | ||
"index": 17, | ||
"lineNumber": 1, | ||
"column": 17, | ||
"message": "Unexpected token ." | ||
"column": 18, | ||
"message": "The only valid meta property for import is 'import.meta'" | ||
}; |
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ module.exports = { | |
"lineNumber": 1, | ||
"column": 5, | ||
"message": "Cannot use new with import()" | ||
}; | ||
}; |
184 changes: 184 additions & 0 deletions
184
...ixtures/ecma-version/11/modules/export-star-as-ns-from-source/export-star-as-ns.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,184 @@ | ||
module.exports = { | ||
"type": "Program", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 0 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 28 | ||
} | ||
}, | ||
"range": [ | ||
0, | ||
28 | ||
], | ||
"body": [ | ||
{ | ||
"type": "ExportAllDeclaration", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 0 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 28 | ||
} | ||
}, | ||
"range": [ | ||
0, | ||
28 | ||
], | ||
"exported": { | ||
"type": "Identifier", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 12 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 14 | ||
} | ||
}, | ||
"range": [ | ||
12, | ||
14 | ||
], | ||
"name": "ns" | ||
}, | ||
"source": { | ||
"type": "Literal", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 20 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 28 | ||
} | ||
}, | ||
"range": [ | ||
20, | ||
28 | ||
], | ||
"value": "source", | ||
"raw": "\"source\"" | ||
} | ||
} | ||
], | ||
"sourceType": "module", | ||
"tokens": [ | ||
{ | ||
"type": "Keyword", | ||
"value": "export", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 0 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 6 | ||
} | ||
}, | ||
"range": [ | ||
0, | ||
6 | ||
] | ||
}, | ||
{ | ||
"type": "Punctuator", | ||
"value": "*", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 7 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 8 | ||
} | ||
}, | ||
"range": [ | ||
7, | ||
8 | ||
] | ||
}, | ||
{ | ||
"type": "Identifier", | ||
"value": "as", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 9 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 11 | ||
} | ||
}, | ||
"range": [ | ||
9, | ||
11 | ||
] | ||
}, | ||
{ | ||
"type": "Identifier", | ||
"value": "ns", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 12 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 14 | ||
} | ||
}, | ||
"range": [ | ||
12, | ||
14 | ||
] | ||
}, | ||
{ | ||
"type": "Identifier", | ||
"value": "from", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 15 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 19 | ||
} | ||
}, | ||
"range": [ | ||
15, | ||
19 | ||
] | ||
}, | ||
{ | ||
"type": "String", | ||
"value": "\"source\"", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 20 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 28 | ||
} | ||
}, | ||
"range": [ | ||
20, | ||
28 | ||
] | ||
} | ||
] | ||
}; |
1 change: 1 addition & 0 deletions
1
...s/fixtures/ecma-version/11/modules/export-star-as-ns-from-source/export-star-as-ns.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 @@ | ||
export * as ns from "source" |
131 changes: 131 additions & 0 deletions
131
tests/fixtures/ecma-version/11/modules/export-star-as-ns-from-source/export-star.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,131 @@ | ||
module.exports = { | ||
"type": "Program", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 0 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 22 | ||
} | ||
}, | ||
"range": [ | ||
0, | ||
22 | ||
], | ||
"body": [ | ||
{ | ||
"type": "ExportAllDeclaration", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 0 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 22 | ||
} | ||
}, | ||
"range": [ | ||
0, | ||
22 | ||
], | ||
"exported": null, | ||
"source": { | ||
"type": "Literal", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 14 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 22 | ||
} | ||
}, | ||
"range": [ | ||
14, | ||
22 | ||
], | ||
"value": "source", | ||
"raw": "\"source\"" | ||
} | ||
} | ||
], | ||
"sourceType": "module", | ||
"tokens": [ | ||
{ | ||
"type": "Keyword", | ||
"value": "export", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 0 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 6 | ||
} | ||
}, | ||
"range": [ | ||
0, | ||
6 | ||
] | ||
}, | ||
{ | ||
"type": "Punctuator", | ||
"value": "*", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 7 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 8 | ||
} | ||
}, | ||
"range": [ | ||
7, | ||
8 | ||
] | ||
}, | ||
{ | ||
"type": "Identifier", | ||
"value": "from", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 9 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 13 | ||
} | ||
}, | ||
"range": [ | ||
9, | ||
13 | ||
] | ||
}, | ||
{ | ||
"type": "String", | ||
"value": "\"source\"", | ||
"loc": { | ||
"start": { | ||
"line": 1, | ||
"column": 14 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 22 | ||
} | ||
}, | ||
"range": [ | ||
14, | ||
22 | ||
] | ||
} | ||
] | ||
}; |
1 change: 1 addition & 0 deletions
1
tests/fixtures/ecma-version/11/modules/export-star-as-ns-from-source/export-star.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 @@ | ||
export * from "source" |
Oops, something went wrong.