test/nashorn/script/basic/parser/varDecl.js.EXPECTED
changeset 47216 71c04702a3d5
parent 19894 195477810711
equal deleted inserted replaced
47215:4ebc2e2fb97c 47216:71c04702a3d5
       
     1 {
       
     2     "type": "Program",
       
     3     "body": [
       
     4         {
       
     5             "type": "VariableDeclaration",
       
     6             "declarations": [
       
     7                 {
       
     8                     "type": "VariableDeclarator",
       
     9                     "id": {
       
    10                         "type": "Identifier",
       
    11                         "name": "a"
       
    12                     },
       
    13                     "init": null
       
    14                 }
       
    15             ]
       
    16         }
       
    17     ]
       
    18 }
       
    19 {
       
    20     "type": "Program",
       
    21     "body": [
       
    22         {
       
    23             "type": "VariableDeclaration",
       
    24             "declarations": [
       
    25                 {
       
    26                     "type": "VariableDeclarator",
       
    27                     "id": {
       
    28                         "type": "Identifier",
       
    29                         "name": "a"
       
    30                     },
       
    31                     "init": null
       
    32                 }
       
    33             ]
       
    34         },
       
    35         {
       
    36             "type": "VariableDeclaration",
       
    37             "declarations": [
       
    38                 {
       
    39                     "type": "VariableDeclarator",
       
    40                     "id": {
       
    41                         "type": "Identifier",
       
    42                         "name": "b"
       
    43                     },
       
    44                     "init": null
       
    45                 }
       
    46             ]
       
    47         }
       
    48     ]
       
    49 }
       
    50 {
       
    51     "type": "Program",
       
    52     "body": [
       
    53         {
       
    54             "type": "VariableDeclaration",
       
    55             "declarations": [
       
    56                 {
       
    57                     "type": "VariableDeclarator",
       
    58                     "id": {
       
    59                         "type": "Identifier",
       
    60                         "name": "a"
       
    61                     },
       
    62                     "init": {
       
    63                         "type": "Literal",
       
    64                         "value": "hello"
       
    65                     }
       
    66                 }
       
    67             ]
       
    68         }
       
    69     ]
       
    70 }
       
    71 {
       
    72     "type": "Program",
       
    73     "body": [
       
    74         {
       
    75             "type": "VariableDeclaration",
       
    76             "declarations": [
       
    77                 {
       
    78                     "type": "VariableDeclarator",
       
    79                     "id": {
       
    80                         "type": "Identifier",
       
    81                         "name": "a"
       
    82                     },
       
    83                     "init": {
       
    84                         "type": "Literal",
       
    85                         "value": 1
       
    86                     }
       
    87                 }
       
    88             ]
       
    89         },
       
    90         {
       
    91             "type": "VariableDeclaration",
       
    92             "declarations": [
       
    93                 {
       
    94                     "type": "VariableDeclarator",
       
    95                     "id": {
       
    96                         "type": "Identifier",
       
    97                         "name": "b"
       
    98                     },
       
    99                     "init": {
       
   100                         "type": "Literal",
       
   101                         "value": 2
       
   102                     }
       
   103                 }
       
   104             ]
       
   105         },
       
   106         {
       
   107             "type": "VariableDeclaration",
       
   108             "declarations": [
       
   109                 {
       
   110                     "type": "VariableDeclarator",
       
   111                     "id": {
       
   112                         "type": "Identifier",
       
   113                         "name": "c"
       
   114                     },
       
   115                     "init": {
       
   116                         "type": "Literal",
       
   117                         "value": 3
       
   118                     }
       
   119                 }
       
   120             ]
       
   121         }
       
   122     ]
       
   123 }