test/nashorn/script/basic/parser/useStrict.js.EXPECTED
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 19894 nashorn/test/script/basic/parser/useStrict.js.EXPECTED@195477810711
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse

{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "Literal",
                "value": "use strict"
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "FunctionDeclaration",
            "id": {
                "type": "Identifier",
                "name": "f"
            },
            "params": [],
            "defaults": [],
            "rest": null,
            "body": {
                "type": "BlockStatement",
                "body": [
                    {
                        "type": "ExpressionStatement",
                        "expression": {
                            "type": "Literal",
                            "value": "use strict"
                        }
                    }
                ]
            },
            "generator": false,
            "expression": false
        }
    ]
}