mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* refactor: remove EstreeImportExpression type * polish: recover from import spread and arity * fix linting errors * polish: print phase in import call errors * polish: update ImportCallNotNewExpression msg * node scripts/cleanup-fixtures.ts
40 lines
1.4 KiB
JSON
40 lines
1.4 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
|
|
"errors": [
|
|
"SyntaxError: Cannot use new with import(). (1:4)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
|
|
"expression": {
|
|
"type": "NewExpression",
|
|
"start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
|
|
"callee": {
|
|
"type": "ImportExpression",
|
|
"start":4,"end":17,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":17,"index":17}},
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start":11,"end":16,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":16,"index":16}},
|
|
"extra": {
|
|
"rawValue": "foo",
|
|
"raw": "\"foo\""
|
|
},
|
|
"value": "foo"
|
|
},
|
|
"options": null
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|