--- old/test/nashorn/script/basic/parser/returnStat.js.EXPECTED 2020-04-15 19:16:58.000000000 +0530 +++ /dev/null 2020-04-15 19:16:58.000000000 +0530 @@ -1,88 +0,0 @@ -{ - "type": "Program", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "FunctionExpression", - "id": null, - "params": [], - "defaults": [], - "rest": null, - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "ReturnStatement", - "argument": null - } - ] - }, - "generator": false, - "expression": false - } - } - ] -} -{ - "type": "Program", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "FunctionExpression", - "id": null, - "params": [], - "defaults": [], - "rest": null, - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "ReturnStatement", - "argument": { - "type": "Identifier", - "name": "res" - } - } - ] - }, - "generator": false, - "expression": false - } - } - ] -} -{ - "type": "Program", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "FunctionExpression", - "id": null, - "params": [], - "defaults": [], - "rest": null, - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "ReturnStatement", - "argument": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "foo" - }, - "arguments": [] - } - } - ] - }, - "generator": false, - "expression": false - } - } - ] -}