Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIx: removed redundant test, re-added relevant test, updated Errors o…
…bject • Removed "without-dynamic-import" test as • Removed unused code from the Errors object • Re-added relevant importMeta test
- Loading branch information
Showing
8 changed files
with
58 additions
and
177 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
1 change: 1 addition & 0 deletions
1
packages/babel-parser/test/fixtures/core/sourcetype-unambiguous/import-meta/input.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 @@ | ||
console.log(import.meta); |
4 changes: 4 additions & 0 deletions
4
packages/babel-parser/test/fixtures/core/sourcetype-unambiguous/import-meta/options.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,4 @@ | ||
{ | ||
"sourceType": "unambiguous", | ||
"plugins": ["importMeta"] | ||
} |
52 changes: 52 additions & 0 deletions
52
packages/babel-parser/test/fixtures/core/sourcetype-unambiguous/import-meta/output.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,52 @@ | ||
{ | ||
"type": "File", | ||
"start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, | ||
"program": { | ||
"type": "Program", | ||
"start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, | ||
"sourceType": "module", | ||
"interpreter": null, | ||
"body": [ | ||
{ | ||
"type": "ExpressionStatement", | ||
"start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, | ||
"expression": { | ||
"type": "CallExpression", | ||
"start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, | ||
"callee": { | ||
"type": "MemberExpression", | ||
"start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, | ||
"object": { | ||
"type": "Identifier", | ||
"start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7},"identifierName":"console"}, | ||
"name": "console" | ||
}, | ||
"property": { | ||
"type": "Identifier", | ||
"start":8,"end":11,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":11},"identifierName":"log"}, | ||
"name": "log" | ||
}, | ||
"computed": false | ||
}, | ||
"arguments": [ | ||
{ | ||
"type": "MetaProperty", | ||
"start":12,"end":23,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":23}}, | ||
"meta": { | ||
"type": "Identifier", | ||
"start":12,"end":18,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":18},"identifierName":"import"}, | ||
"name": "import" | ||
}, | ||
"property": { | ||
"type": "Identifier", | ||
"start":19,"end":23,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":23},"identifierName":"meta"}, | ||
"name": "meta" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"directives": [] | ||
} | ||
} |
5 changes: 0 additions & 5 deletions
5
packages/babel-parser/test/fixtures/es2020/import-meta/without-dynamic-import/input.js
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
packages/babel-parser/test/fixtures/es2020/import-meta/without-dynamic-import/options.json
This file was deleted.
Oops, something went wrong.
167 changes: 0 additions & 167 deletions
167
packages/babel-parser/test/fixtures/es2020/import-meta/without-dynamic-import/output.json
This file was deleted.
Oops, something went wrong.
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