Files
Huáng JùnliàngandGitHub 68679c0760 polish(parser): improve ImportExpression error recovery (#17902)
* 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
2026-04-19 14:29:45 -04:00

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": []
}
}