test/script/basic/parser/tryCatchStat.js.EXPECTED

Print this page


   1 {
   2     "type": "Program",
   3     "body": [
   4         {
   5             "type": "BlockStatement",
   6             "block": {
   7                 "type": "BlockStatement",
   8                 "body": [
   9                     {
  10                         "type": "TryStatement",
  11                         "block": {
  12                             "type": "BlockStatement",
  13                             "body": []
  14                         },
  15                         "guardedHandlers": [],
  16                         "handler": {
  17                             "type": "CatchClause",
  18                             "param": {
  19                                 "type": "Identifier",
  20                                 "name": "e"
  21                             },
  22                             "body": {
  23                                 "type": "BlockStatement",
  24                                 "body": []
  25                             }
  26                         },
  27                         "finalizer": null
  28                     }
  29                 ]
  30             }
  31         }
  32     ]
  33 }
  34 {
  35     "type": "Program",
  36     "body": [
  37         {
  38             "type": "BlockStatement",
  39             "block": {
  40                 "type": "BlockStatement",
  41                 "body": [
  42                     {
  43                         "type": "TryStatement",
  44                         "block": {
  45                             "type": "BlockStatement",
  46                             "body": []
  47                         },
  48                         "guardedHandlers": [],
  49                         "handler": {
  50                             "type": "CatchClause",
  51                             "param": {
  52                                 "type": "Identifier",
  53                                 "name": "e"
  54                             },
  55                             "body": {
  56                                 "type": "BlockStatement",
  57                                 "body": []
  58                             }
  59                         },
  60                         "finalizer": {
  61                             "type": "BlockStatement",
  62                             "body": []
  63                         }
  64                     }
  65                 ]
  66             }
  67         }
  68     ]
  69 }
  70 {
  71     "type": "Program",
  72     "body": [
  73         {
  74             "type": "BlockStatement",
  75             "block": {
  76                 "type": "BlockStatement",
  77                 "body": [
  78                     {
  79                         "type": "TryStatement",
  80                         "block": {
  81                             "type": "BlockStatement",
  82                             "body": []
  83                         },
  84                         "guardedHandlers": [],
  85                         "handler": null,
  86                         "finalizer": {
  87                             "type": "BlockStatement",
  88                             "body": []
  89                         }
  90                     }
  91                 ]
  92             }
  93         }
  94     ]
  95 }
  96 {
  97     "type": "Program",
  98     "body": [
  99         {
 100             "type": "BlockStatement",
 101             "block": {
 102                 "type": "BlockStatement",
 103                 "body": [
 104                     {
 105                         "type": "TryStatement",
 106                         "block": {
 107                             "type": "BlockStatement",
 108                             "body": []
 109                         },
 110                         "guardedHandlers": [],
 111                         "handler": {
 112                             "type": "CatchClause",
 113                             "param": {
 114                                 "type": "Identifier",
 115                                 "name": "e"
 116                             },
 117                             "body": {
 118                                 "type": "BlockStatement",
 119                                 "body": [
 120                                     {
 121                                         "type": "ExpressionStatement",
 122                                         "expression": {
 123                                             "type": "CallExpression",
 124                                             "callee": {
 125                                                 "type": "Identifier",
 126                                                 "name": "handle"
 127                                             },
 128                                             "arguments": []
 129                                         }
 130                                     }
 131                                 ]
 132                             }
 133                         },
 134                         "finalizer": null
 135                     }
 136                 ]
 137             }
 138         }
 139     ]
 140 }
 141 {
 142     "type": "Program",
 143     "body": [
 144         {
 145             "type": "BlockStatement",
 146             "block": {
 147                 "type": "BlockStatement",
 148                 "body": [
 149                     {
 150                         "type": "TryStatement",
 151                         "block": {
 152                             "type": "BlockStatement",
 153                             "body": [
 154                                 {
 155                                     "type": "ExpressionStatement",
 156                                     "expression": {
 157                                         "type": "CallExpression",
 158                                         "callee": {
 159                                             "type": "Identifier",
 160                                             "name": "that"
 161                                         },
 162                                         "arguments": []
 163                                     }
 164                                 }
 165                             ]
 166                         },
 167                         "guardedHandlers": [],
 168                         "handler": {
 169                             "type": "CatchClause",


 189                             }
 190                         },
 191                         "finalizer": {
 192                             "type": "BlockStatement",
 193                             "body": [
 194                                 {
 195                                     "type": "ExpressionStatement",
 196                                     "expression": {
 197                                         "type": "CallExpression",
 198                                         "callee": {
 199                                             "type": "Identifier",
 200                                             "name": "clean"
 201                                         },
 202                                         "arguments": []
 203                                     }
 204                                 }
 205                             ]
 206                         }
 207                     }
 208                 ]
 209             }
 210         }
 211     ]
 212 }
 213 {
 214     "type": "Program",
 215     "body": [
 216         {
 217             "type": "BlockStatement",
 218             "block": {
 219                 "type": "BlockStatement",
 220                 "body": [
 221                     {
 222                         "type": "TryStatement",
 223                         "block": {
 224                             "type": "BlockStatement",
 225                             "body": [
 226                                 {
 227                                     "type": "ExpressionStatement",
 228                                     "expression": {
 229                                         "type": "CallExpression",
 230                                         "callee": {
 231                                             "type": "Identifier",
 232                                             "name": "that"
 233                                         },
 234                                         "arguments": []
 235                                     }
 236                                 }
 237                             ]
 238                         },
 239                         "guardedHandlers": [
 240                             {
 241                                 "type": "CatchClause",


 280                                 "name": "e"
 281                             },
 282                             "body": {
 283                                 "type": "BlockStatement",
 284                                 "body": [
 285                                     {
 286                                         "type": "ExpressionStatement",
 287                                         "expression": {
 288                                             "type": "CallExpression",
 289                                             "callee": {
 290                                                 "type": "Identifier",
 291                                                 "name": "rest"
 292                                             },
 293                                             "arguments": []
 294                                         }
 295                                     }
 296                                 ]
 297                             }
 298                         },
 299                         "finalizer": null
 300                     }
 301                 ]
 302             }
 303         }
 304     ]
 305 }
   1 {
   2     "type": "Program",
   3     "body": [
   4         {





   5             "type": "TryStatement",
   6             "block": {
   7                 "type": "BlockStatement",
   8                 "body": []
   9             },
  10             "guardedHandlers": [],
  11             "handler": {
  12                 "type": "CatchClause",
  13                 "param": {
  14                     "type": "Identifier",
  15                     "name": "e"
  16                 },
  17                 "body": {
  18                     "type": "BlockStatement",
  19                     "body": []
  20                 }
  21             },
  22             "finalizer": null
  23         }
  24     ]



  25 }
  26 {
  27     "type": "Program",
  28     "body": [
  29         {





  30             "type": "TryStatement",
  31             "block": {
  32                 "type": "BlockStatement",
  33                 "body": []
  34             },
  35             "guardedHandlers": [],
  36             "handler": {
  37                 "type": "CatchClause",
  38                 "param": {
  39                     "type": "Identifier",
  40                     "name": "e"
  41                 },
  42                 "body": {
  43                     "type": "BlockStatement",
  44                     "body": []
  45                 }
  46             },
  47             "finalizer": {
  48                 "type": "BlockStatement",
  49                 "body": []
  50             }
  51         }
  52     ]



  53 }
  54 {
  55     "type": "Program",
  56     "body": [
  57         {





  58             "type": "TryStatement",
  59             "block": {
  60                 "type": "BlockStatement",
  61                 "body": []
  62             },
  63             "guardedHandlers": [],
  64             "handler": null,
  65             "finalizer": {
  66                 "type": "BlockStatement",
  67                 "body": []
  68             }
  69         }
  70     ]



  71 }
  72 {
  73     "type": "Program",
  74     "body": [
  75         {





  76             "type": "TryStatement",
  77             "block": {
  78                 "type": "BlockStatement",
  79                 "body": []
  80             },
  81             "guardedHandlers": [],
  82             "handler": {
  83                 "type": "CatchClause",
  84                 "param": {
  85                     "type": "Identifier",
  86                     "name": "e"
  87                 },
  88                 "body": {
  89                     "type": "BlockStatement",
  90                     "body": [
  91                         {
  92                             "type": "ExpressionStatement",
  93                             "expression": {
  94                                 "type": "CallExpression",
  95                                 "callee": {
  96                                     "type": "Identifier",
  97                                     "name": "handle"
  98                                 },
  99                                 "arguments": []
 100                             }
 101                         }
 102                     ]
 103                 }
 104             },
 105             "finalizer": null
 106         }
 107     ]



 108 }
 109 {
 110     "type": "Program",
 111     "body": [
 112         {





 113             "type": "TryStatement",
 114             "block": {
 115                 "type": "BlockStatement",
 116                 "body": [
 117                     {
 118                         "type": "ExpressionStatement",
 119                         "expression": {
 120                             "type": "CallExpression",
 121                             "callee": {
 122                                 "type": "Identifier",
 123                                 "name": "that"
 124                             },
 125                             "arguments": []
 126                         }
 127                     }
 128                 ]
 129             },
 130             "guardedHandlers": [],
 131             "handler": {
 132                 "type": "CatchClause",


 152                 }
 153             },
 154             "finalizer": {
 155                 "type": "BlockStatement",
 156                 "body": [
 157                     {
 158                         "type": "ExpressionStatement",
 159                         "expression": {
 160                             "type": "CallExpression",
 161                             "callee": {
 162                                 "type": "Identifier",
 163                                 "name": "clean"
 164                             },
 165                             "arguments": []
 166                         }
 167                     }
 168                 ]
 169             }
 170         }
 171     ]



 172 }
 173 {
 174     "type": "Program",
 175     "body": [
 176         {





 177             "type": "TryStatement",
 178             "block": {
 179                 "type": "BlockStatement",
 180                 "body": [
 181                     {
 182                         "type": "ExpressionStatement",
 183                         "expression": {
 184                             "type": "CallExpression",
 185                             "callee": {
 186                                 "type": "Identifier",
 187                                 "name": "that"
 188                             },
 189                             "arguments": []
 190                         }
 191                     }
 192                 ]
 193             },
 194             "guardedHandlers": [
 195                 {
 196                     "type": "CatchClause",


 235                     "name": "e"
 236                 },
 237                 "body": {
 238                     "type": "BlockStatement",
 239                     "body": [
 240                         {
 241                             "type": "ExpressionStatement",
 242                             "expression": {
 243                                 "type": "CallExpression",
 244                                 "callee": {
 245                                     "type": "Identifier",
 246                                     "name": "rest"
 247                                 },
 248                                 "arguments": []
 249                             }
 250                         }
 251                     ]
 252                 }
 253             },
 254             "finalizer": null



 255         }
 256     ]
 257 }