{
  "type": "File",
  "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}},
  "errors": [
    "SyntaxError: In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement (1:10)"
  ],
  "program": {
    "type": "Program",
    "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}},
    "sourceType": "script",
    "interpreter": null,
    "body": [
      {
        "type": "WhileStatement",
        "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}},
        "test": {
          "type": "NumericLiteral",
          "start":7,"end":8,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":8}},
          "extra": {
            "rawValue": 1,
            "raw": "1"
          },
          "value": 1
        },
        "body": {
          "type": "FunctionDeclaration",
          "start":10,"end":26,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":26}},
          "id": {
            "type": "Identifier",
            "start":19,"end":22,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":22},"identifierName":"foo"},
            "name": "foo"
          },
          "generator": false,
          "async": false,
          "params": [],
          "body": {
            "type": "BlockStatement",
            "start":24,"end":26,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":26}},
            "body": [],
            "directives": []
          }
        }
      }
    ],
    "directives": []
  }
}