Files
Huáng JùnliàngandGitHub 61bea4ddf5 Fix: always initialize ExportDeclaration attributes (#17164)
* chore: bump eslint and espree

* fix: always initialize ExportDeclaration attributes

* update AST fixtures

* fix: initialize attributes when importAssertions is not enabled

* update AST fixtures

* update test snapshot

* update Makefile.js

* update Babel 8 AST fixtures
2025-03-06 15:29:46 -05:00

58 lines
2.1 KiB
JSON

{
"type": "File",
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":22,"index":41}},
"program": {
"type": "Program",
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":22,"index":41}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "ExportNamedDeclaration",
"start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
"specifiers": [
{
"type": "ExportSpecifier",
"start":9,"end":16,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":16,"index":16}},
"local": {
"type": "Identifier",
"start":9,"end":16,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":16,"index":16},"identifierName":"encrypt"},
"name": "encrypt"
},
"exported": {
"type": "Identifier",
"start":9,"end":16,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":16,"index":16},"identifierName":"encrypt"},
"name": "encrypt"
}
}
],
"source": null,
"declaration": null,
"attributes": []
},
{
"type": "FunctionDeclaration",
"start":19,"end":41,"loc":{"start":{"line":2,"column":0,"index":19},"end":{"line":2,"column":22,"index":41}},
"id": {
"type": "Identifier",
"start":28,"end":35,"loc":{"start":{"line":2,"column":9,"index":28},"end":{"line":2,"column":16,"index":35},"identifierName":"encrypt"},
"name": "encrypt"
},
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":39,"end":41,"loc":{"start":{"line":2,"column":20,"index":39},"end":{"line":2,"column":22,"index":41}},
"body": [],
"directives": []
}
}
],
"directives": [],
"extra": {
"topLevelAwait": false
}
}
}