test/nashorn/script/basic/parser/useStrict.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": "Literal",
       
     8                 "value": "use strict"
       
     9             }
       
    10         }
       
    11     ]
       
    12 }
       
    13 {
       
    14     "type": "Program",
       
    15     "body": [
       
    16         {
       
    17             "type": "FunctionDeclaration",
       
    18             "id": {
       
    19                 "type": "Identifier",
       
    20                 "name": "f"
       
    21             },
       
    22             "params": [],
       
    23             "defaults": [],
       
    24             "rest": null,
       
    25             "body": {
       
    26                 "type": "BlockStatement",
       
    27                 "body": [
       
    28                     {
       
    29                         "type": "ExpressionStatement",
       
    30                         "expression": {
       
    31                             "type": "Literal",
       
    32                             "value": "use strict"
       
    33                         }
       
    34                     }
       
    35                 ]
       
    36             },
       
    37             "generator": false,
       
    38             "expression": false
       
    39         }
       
    40     ]
       
    41 }