mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +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
26 lines
850 B
JSON
26 lines
850 B
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
|
|
"errors": [
|
|
"SyntaxError: `import()` requires exactly one or two arguments. (1:0)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
|
|
"expression": {
|
|
"type": "ImportExpression",
|
|
"start":0,"end":8,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":8,"index":8}},
|
|
"options": null
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|