test/nashorn/script/basic/parser/tryCatchStat.js.EXPECTED
author mikael
Thu, 19 Apr 2018 17:13:19 -0700
changeset 49838 b37e0785ce0b
parent 47216 71c04702a3d5
permissions -rw-r--r--
8202052: Disable warnings when building libawt with VS2017 Reviewed-by: erikj, prr

{
    "type": "Program",
    "body": [
        {
            "type": "TryStatement",
            "block": {
                "type": "BlockStatement",
                "body": []
            },
            "guardedHandlers": [],
            "handler": {
                "type": "CatchClause",
                "param": {
                    "type": "Identifier",
                    "name": "e"
                },
                "body": {
                    "type": "BlockStatement",
                    "body": []
                }
            },
            "finalizer": null
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "TryStatement",
            "block": {
                "type": "BlockStatement",
                "body": []
            },
            "guardedHandlers": [],
            "handler": {
                "type": "CatchClause",
                "param": {
                    "type": "Identifier",
                    "name": "e"
                },
                "body": {
                    "type": "BlockStatement",
                    "body": []
                }
            },
            "finalizer": {
                "type": "BlockStatement",
                "body": []
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "TryStatement",
            "block": {
                "type": "BlockStatement",
                "body": []
            },
            "guardedHandlers": [],
            "handler": null,
            "finalizer": {
                "type": "BlockStatement",
                "body": []
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "TryStatement",
            "block": {
                "type": "BlockStatement",
                "body": []
            },
            "guardedHandlers": [],
            "handler": {
                "type": "CatchClause",
                "param": {
                    "type": "Identifier",
                    "name": "e"
                },
                "body": {
                    "type": "BlockStatement",
                    "body": [
                        {
                            "type": "ExpressionStatement",
                            "expression": {
                                "type": "CallExpression",
                                "callee": {
                                    "type": "Identifier",
                                    "name": "handle"
                                },
                                "arguments": []
                            }
                        }
                    ]
                }
            },
            "finalizer": null
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "TryStatement",
            "block": {
                "type": "BlockStatement",
                "body": [
                    {
                        "type": "ExpressionStatement",
                        "expression": {
                            "type": "CallExpression",
                            "callee": {
                                "type": "Identifier",
                                "name": "that"
                            },
                            "arguments": []
                        }
                    }
                ]
            },
            "guardedHandlers": [],
            "handler": {
                "type": "CatchClause",
                "param": {
                    "type": "Identifier",
                    "name": "e"
                },
                "body": {
                    "type": "BlockStatement",
                    "body": [
                        {
                            "type": "ExpressionStatement",
                            "expression": {
                                "type": "CallExpression",
                                "callee": {
                                    "type": "Identifier",
                                    "name": "handle"
                                },
                                "arguments": []
                            }
                        }
                    ]
                }
            },
            "finalizer": {
                "type": "BlockStatement",
                "body": [
                    {
                        "type": "ExpressionStatement",
                        "expression": {
                            "type": "CallExpression",
                            "callee": {
                                "type": "Identifier",
                                "name": "clean"
                            },
                            "arguments": []
                        }
                    }
                ]
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "TryStatement",
            "block": {
                "type": "BlockStatement",
                "body": [
                    {
                        "type": "ExpressionStatement",
                        "expression": {
                            "type": "CallExpression",
                            "callee": {
                                "type": "Identifier",
                                "name": "that"
                            },
                            "arguments": []
                        }
                    }
                ]
            },
            "guardedHandlers": [
                {
                    "type": "CatchClause",
                    "param": {
                        "type": "Identifier",
                        "name": "e"
                    },
                    "guard": {
                        "type": "BinaryExpression",
                        "operator": "instanceof",
                        "left": {
                            "type": "Identifier",
                            "name": "e"
                        },
                        "right": {
                            "type": "Identifier",
                            "name": "TypeError"
                        }
                    },
                    "body": {
                        "type": "BlockStatement",
                        "body": [
                            {
                                "type": "ExpressionStatement",
                                "expression": {
                                    "type": "CallExpression",
                                    "callee": {
                                        "type": "Identifier",
                                        "name": "handle"
                                    },
                                    "arguments": []
                                }
                            }
                        ]
                    }
                }
            ],
            "handler": {
                "type": "CatchClause",
                "param": {
                    "type": "Identifier",
                    "name": "e"
                },
                "body": {
                    "type": "BlockStatement",
                    "body": [
                        {
                            "type": "ExpressionStatement",
                            "expression": {
                                "type": "CallExpression",
                                "callee": {
                                    "type": "Identifier",
                                    "name": "rest"
                                },
                                "arguments": []
                            }
                        }
                    ]
                }
            },
            "finalizer": null
        }
    ]
}