jdk-24/nashorn/test/script/basic/parser/breakStat.js.EXPECTED
Attila Szegedi 64fd9c191a 8042118: Separate types from symbols
Reviewed-by: hannesw, lagergren
2014-05-13 11:30:40 +02:00

81 lines
2.1 KiB
Plaintext

{
"type": "Program",
"body": [
{
"type": "WhileStatement",
"test": {
"type": "Literal",
"value": true
},
"body": {
"type": "BlockStatement",
"body": [
{
"type": "BreakStatement",
"label": null
}
]
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "LabeledStatement",
"label": "loop",
"body": {
"type": "BlockStatement",
"body": [
{
"type": "WhileStatement",
"test": {
"type": "Literal",
"value": true
},
"body": {
"type": "BlockStatement",
"body": [
{
"type": "BreakStatement",
"label": "loop"
}
]
}
}
]
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "LabeledStatement",
"label": "loop",
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ForStatement",
"init": null,
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"body": [
{
"type": "BreakStatement",
"label": "loop"
}
]
}
}
]
}
}
]
}