mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* allowYieldOutsideFunction * dts * review * template * Revert "template" This reverts commit 324e0893f51b5c8dd2c9f546e0cd3cc4441c5b56. * improve error * review
35 lines
1.1 KiB
JSON
35 lines
1.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":8,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":8,"index":8}},
|
|
"errors": [
|
|
"SyntaxError: 'yield' is only allowed within generator functions. (1:0)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":8,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":8,"index":8}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":8,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":8,"index":8}},
|
|
"expression": {
|
|
"type": "YieldExpression",
|
|
"start":0,"end":8,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":8,"index":8}},
|
|
"delegate": false,
|
|
"argument": {
|
|
"type": "NumericLiteral",
|
|
"start":6,"end":8,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":8,"index":8}},
|
|
"extra": {
|
|
"rawValue": 10,
|
|
"raw": "10"
|
|
},
|
|
"value": 10
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|