nashorn/test/script/basic/parser/breakStat.js.EXPECTED
author hannesw
Mon, 14 Oct 2013 11:45:15 +0200
changeset 20943 183832541ef7
parent 19894 195477810711
child 24751 ccbd9cd3f720
permissions -rw-r--r--
8026016: too many relinks dominate avatar.js http benchmark Reviewed-by: sundar, jlaskey, attila

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