test/script/basic/parser/withStat.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 0
b1a7da25b547
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": "WithStatement",
     6             "object": {
     7                 "type": "Identifier",
     8                 "name": "scope"
     9             },
    10             "body": {
    11                 "type": "BlockStatement",
    12                 "body": [
    13                     {
    14                         "type": "ExpressionStatement",
    15                         "expression": {
    16                             "type": "AssignmentExpression",
    17                             "operator": "=",
    18                             "left": {
    19                                 "type": "Identifier",
    20                                 "name": "x"
    21                             },
    22                             "right": {
    23                                 "type": "Identifier",
    24                                 "name": "y"
    25                             }
    26                         }
    27                     }
    28                 ]
    29             }
    30         }
    31     ]
    32 }

mercurial