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

Wed, 28 Jan 2015 17:58:08 +0100

author
attila
date
Wed, 28 Jan 2015 17:58:08 +0100
changeset 1226
8b3f832bea55
parent 963
e2497b11a021
permissions
-rw-r--r--

8067139: Finally blocks inlined incorrectly
Reviewed-by: hannesw, lagergren

     1 {
     2     "type": "Program",
     3     "body": [
     4         {
     5             "type": "LabeledStatement",
     6             "label": "begin",
     7             "body": {
     8                 "type": "BlockStatement",
     9                 "body": [
    10                     {
    11                         "type": "ForStatement",
    12                         "init": null,
    13                         "test": null,
    14                         "update": null,
    15                         "body": {
    16                             "type": "BlockStatement",
    17                             "body": [
    18                                 {
    19                                     "type": "BreakStatement",
    20                                     "label": "begin"
    21                                 }
    22                             ]
    23                         }
    24                     }
    25                 ]
    26             }
    27         }
    28     ]
    29 }
    30 {
    31     "type": "Program",
    32     "body": [
    33         {
    34             "type": "LabeledStatement",
    35             "label": "begin",
    36             "body": {
    37                 "type": "BlockStatement",
    38                 "body": [
    39                     {
    40                         "type": "WhileStatement",
    41                         "test": {
    42                             "type": "Literal",
    43                             "value": true
    44                         },
    45                         "body": {
    46                             "type": "BlockStatement",
    47                             "body": [
    48                                 {
    49                                     "type": "BreakStatement",
    50                                     "label": "begin"
    51                                 }
    52                             ]
    53                         }
    54                     }
    55                 ]
    56             }
    57         }
    58     ]
    59 }

mercurial