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

Tue, 21 Mar 2017 13:41:57 -0700

author
asaha
date
Tue, 21 Mar 2017 13:41:57 -0700
changeset 2160
1df40fe54cd6
parent 963
e2497b11a021
permissions
-rw-r--r--

Merge

     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