test/script/basic/parser/condExpr.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

aoqi@0 1 {
aoqi@0 2 "type": "Program",
aoqi@0 3 "body": [
aoqi@0 4 {
aoqi@0 5 "type": "ExpressionStatement",
aoqi@0 6 "expression": {
aoqi@0 7 "type": "ConditionalExpression",
aoqi@0 8 "test": {
aoqi@0 9 "type": "Identifier",
aoqi@0 10 "name": "a"
aoqi@0 11 },
aoqi@0 12 "consequent": {
aoqi@0 13 "type": "Identifier",
aoqi@0 14 "name": "b"
aoqi@0 15 },
aoqi@0 16 "alternate": {
aoqi@0 17 "type": "Identifier",
aoqi@0 18 "name": "c"
aoqi@0 19 }
aoqi@0 20 }
aoqi@0 21 }
aoqi@0 22 ]
aoqi@0 23 }

mercurial