test/script/basic/NASHORN-737.js.EXPECTED

Fri, 21 Mar 2014 20:24:01 +0530

author
sundar
date
Fri, 21 Mar 2014 20:24:01 +0530
changeset 772
c1f528e1d2f2
parent 551
917b16e509bd
child 952
6d5471a497fb
child 963
e2497b11a021
permissions
-rw-r--r--

8037562: Nashorn: JSON.parse comes up with nonexistent entries if there are gaps between the keys
Reviewed-by: jlaskey, hannesw

     1 {
     2     "type": "Program",
     3     "body": [
     4         {
     5             "type": "LabeledStatement",
     6             "label": {
     7                 "type": "Identifier",
     8                 "name": "label"
     9             },
    10             "body": {
    11                 "type": "BlockStatement",
    12                 "body": [
    13                     {
    14                         "type": "WhileStatement",
    15                         "test": {
    16                             "type": "Literal",
    17                             "value": true
    18                         },
    19                         "body": {
    20                             "type": "BlockStatement",
    21                             "body": [
    22                                 {
    23                                     "type": "BreakStatement",
    24                                     "label": {
    25                                         "type": "Identifier",
    26                                         "name": "label"
    27                                     }
    28                                 }
    29                             ]
    30                         }
    31                     }
    32                 ]
    33             }
    34         }
    35     ]
    36 }

mercurial