test/nashorn/script/basic/parser/unaryExpr.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": "ExpressionStatement",
       
     6             "expression": {
       
     7                 "type": "UpdateExpression",
       
     8                 "operator": "++",
       
     9                 "prefix": false,
       
    10                 "argument": {
       
    11                     "type": "Identifier",
       
    12                     "name": "x"
       
    13                 }
       
    14             }
       
    15         }
       
    16     ]
       
    17 }
       
    18 {
       
    19     "type": "Program",
       
    20     "body": [
       
    21         {
       
    22             "type": "ExpressionStatement",
       
    23             "expression": {
       
    24                 "type": "UpdateExpression",
       
    25                 "operator": "--",
       
    26                 "prefix": false,
       
    27                 "argument": {
       
    28                     "type": "Identifier",
       
    29                     "name": "x"
       
    30                 }
       
    31             }
       
    32         }
       
    33     ]
       
    34 }
       
    35 {
       
    36     "type": "Program",
       
    37     "body": [
       
    38         {
       
    39             "type": "ExpressionStatement",
       
    40             "expression": {
       
    41                 "type": "UnaryExpression",
       
    42                 "operator": "delete",
       
    43                 "prefix": true,
       
    44                 "argument": {
       
    45                     "type": "Identifier",
       
    46                     "name": "x"
       
    47                 }
       
    48             }
       
    49         }
       
    50     ]
       
    51 }
       
    52 {
       
    53     "type": "Program",
       
    54     "body": [
       
    55         {
       
    56             "type": "ExpressionStatement",
       
    57             "expression": {
       
    58                 "type": "UnaryExpression",
       
    59                 "operator": "void",
       
    60                 "prefix": true,
       
    61                 "argument": {
       
    62                     "type": "Identifier",
       
    63                     "name": "x"
       
    64                 }
       
    65             }
       
    66         }
       
    67     ]
       
    68 }
       
    69 {
       
    70     "type": "Program",
       
    71     "body": [
       
    72         {
       
    73             "type": "ExpressionStatement",
       
    74             "expression": {
       
    75                 "type": "UnaryExpression",
       
    76                 "operator": "typeof",
       
    77                 "prefix": true,
       
    78                 "argument": {
       
    79                     "type": "Identifier",
       
    80                     "name": "x"
       
    81                 }
       
    82             }
       
    83         }
       
    84     ]
       
    85 }
       
    86 {
       
    87     "type": "Program",
       
    88     "body": [
       
    89         {
       
    90             "type": "ExpressionStatement",
       
    91             "expression": {
       
    92                 "type": "UpdateExpression",
       
    93                 "operator": "++",
       
    94                 "prefix": true,
       
    95                 "argument": {
       
    96                     "type": "Identifier",
       
    97                     "name": "x"
       
    98                 }
       
    99             }
       
   100         }
       
   101     ]
       
   102 }
       
   103 {
       
   104     "type": "Program",
       
   105     "body": [
       
   106         {
       
   107             "type": "ExpressionStatement",
       
   108             "expression": {
       
   109                 "type": "UpdateExpression",
       
   110                 "operator": "--",
       
   111                 "prefix": true,
       
   112                 "argument": {
       
   113                     "type": "Identifier",
       
   114                     "name": "x"
       
   115                 }
       
   116             }
       
   117         }
       
   118     ]
       
   119 }
       
   120 {
       
   121     "type": "Program",
       
   122     "body": [
       
   123         {
       
   124             "type": "ExpressionStatement",
       
   125             "expression": {
       
   126                 "type": "UnaryExpression",
       
   127                 "operator": "+",
       
   128                 "prefix": true,
       
   129                 "argument": {
       
   130                     "type": "Identifier",
       
   131                     "name": "x"
       
   132                 }
       
   133             }
       
   134         }
       
   135     ]
       
   136 }
       
   137 {
       
   138     "type": "Program",
       
   139     "body": [
       
   140         {
       
   141             "type": "ExpressionStatement",
       
   142             "expression": {
       
   143                 "type": "UnaryExpression",
       
   144                 "operator": "-",
       
   145                 "prefix": true,
       
   146                 "argument": {
       
   147                     "type": "Identifier",
       
   148                     "name": "x"
       
   149                 }
       
   150             }
       
   151         }
       
   152     ]
       
   153 }
       
   154 {
       
   155     "type": "Program",
       
   156     "body": [
       
   157         {
       
   158             "type": "ExpressionStatement",
       
   159             "expression": {
       
   160                 "type": "UnaryExpression",
       
   161                 "operator": "~",
       
   162                 "prefix": true,
       
   163                 "argument": {
       
   164                     "type": "Identifier",
       
   165                     "name": "x"
       
   166                 }
       
   167             }
       
   168         }
       
   169     ]
       
   170 }
       
   171 {
       
   172     "type": "Program",
       
   173     "body": [
       
   174         {
       
   175             "type": "ExpressionStatement",
       
   176             "expression": {
       
   177                 "type": "UnaryExpression",
       
   178                 "operator": "!",
       
   179                 "prefix": true,
       
   180                 "argument": {
       
   181                     "type": "Identifier",
       
   182                     "name": "x"
       
   183                 }
       
   184             }
       
   185         }
       
   186     ]
       
   187 }