nashorn/test/script/nosecurity/treeapi/condExpr.js.EXPECTED
author sdama
Mon, 14 Nov 2016 22:33:33 -0800
changeset 41983 eb674141ab03
parent 29543 4d9f8f8b69a4
permissions -rw-r--r--
8156615: Catch parameter can be a BindingPattern in ES6 mode Summary: Added parser support for catch parameter being a binding pattern Reviewed-by: sundar, hannesw, attila Contributed-by: srinivas.dama@oracle.com

[
  {
    "condition": {
      "endPosition": "2",
      "kind": "IDENTIFIER",
      "name": "a",
      "startPosition": "1"
    },
    "endPosition": "9",
    "kind": "CONDITIONAL_EXPRESSION",
    "trueExpression": {
      "endPosition": "5",
      "kind": "IDENTIFIER",
      "name": "b",
      "startPosition": "4"
    },
    "falseExpression": {
      "endPosition": "9",
      "kind": "IDENTIFIER",
      "name": "c",
      "startPosition": "8"
    },
    "startPosition": "2"
  }
]