view test/script/basic/parser/continueStat.js.EXPECTED @ 561:917b16e509bd

8024693: Various minor issues with JSONWriter used by script parser API Reviewed-by: jlaskey, hannesw
author sundar
date Thu, 12 Sep 2013 22:16:40 +0530
parents
children
line wrap: on
line source
{
    "type": "Program",
    "body": [
        {
            "type": "WhileStatement",
            "test": {
                "type": "Literal",
                "value": true
            },
            "body": {
                "type": "BlockStatement",
                "body": [
                    {
                        "type": "ContinueStatement",
                        "label": null
                    }
                ]
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "LabeledStatement",
            "label": {
                "type": "Identifier",
                "name": "begin"
            },
            "body": {
                "type": "BlockStatement",
                "body": [
                    {
                        "type": "WhileStatement",
                        "test": {
                            "type": "Literal",
                            "value": true
                        },
                        "body": {
                            "type": "BlockStatement",
                            "body": [
                                {
                                    "type": "ContinueStatement",
                                    "label": {
                                        "type": "Identifier",
                                        "name": "begin"
                                    }
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "LabeledStatement",
            "label": {
                "type": "Identifier",
                "name": "start"
            },
            "body": {
                "type": "BlockStatement",
                "body": [
                    {
                        "type": "ForStatement",
                        "init": null,
                        "test": null,
                        "update": null,
                        "body": {
                            "type": "BlockStatement",
                            "body": [
                                {
                                    "type": "ContinueStatement",
                                    "label": {
                                        "type": "Identifier",
                                        "name": "start"
                                    }
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ]
}