--- old/test/nashorn/script/basic/parser/tryCatchStat.js.EXPECTED 2020-04-15 19:17:02.000000000 +0530 +++ /dev/null 2020-04-15 19:17:02.000000000 +0530 @@ -1,257 +0,0 @@ -{ - "type": "Program", - "body": [ - { - "type": "TryStatement", - "block": { - "type": "BlockStatement", - "body": [] - }, - "guardedHandlers": [], - "handler": { - "type": "CatchClause", - "param": { - "type": "Identifier", - "name": "e" - }, - "body": { - "type": "BlockStatement", - "body": [] - } - }, - "finalizer": null - } - ] -} -{ - "type": "Program", - "body": [ - { - "type": "TryStatement", - "block": { - "type": "BlockStatement", - "body": [] - }, - "guardedHandlers": [], - "handler": { - "type": "CatchClause", - "param": { - "type": "Identifier", - "name": "e" - }, - "body": { - "type": "BlockStatement", - "body": [] - } - }, - "finalizer": { - "type": "BlockStatement", - "body": [] - } - } - ] -} -{ - "type": "Program", - "body": [ - { - "type": "TryStatement", - "block": { - "type": "BlockStatement", - "body": [] - }, - "guardedHandlers": [], - "handler": null, - "finalizer": { - "type": "BlockStatement", - "body": [] - } - } - ] -} -{ - "type": "Program", - "body": [ - { - "type": "TryStatement", - "block": { - "type": "BlockStatement", - "body": [] - }, - "guardedHandlers": [], - "handler": { - "type": "CatchClause", - "param": { - "type": "Identifier", - "name": "e" - }, - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "handle" - }, - "arguments": [] - } - } - ] - } - }, - "finalizer": null - } - ] -} -{ - "type": "Program", - "body": [ - { - "type": "TryStatement", - "block": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "that" - }, - "arguments": [] - } - } - ] - }, - "guardedHandlers": [], - "handler": { - "type": "CatchClause", - "param": { - "type": "Identifier", - "name": "e" - }, - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "handle" - }, - "arguments": [] - } - } - ] - } - }, - "finalizer": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "clean" - }, - "arguments": [] - } - } - ] - } - } - ] -} -{ - "type": "Program", - "body": [ - { - "type": "TryStatement", - "block": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "that" - }, - "arguments": [] - } - } - ] - }, - "guardedHandlers": [ - { - "type": "CatchClause", - "param": { - "type": "Identifier", - "name": "e" - }, - "guard": { - "type": "BinaryExpression", - "operator": "instanceof", - "left": { - "type": "Identifier", - "name": "e" - }, - "right": { - "type": "Identifier", - "name": "TypeError" - } - }, - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "handle" - }, - "arguments": [] - } - } - ] - } - } - ], - "handler": { - "type": "CatchClause", - "param": { - "type": "Identifier", - "name": "e" - }, - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "rest" - }, - "arguments": [] - } - } - ] - } - }, - "finalizer": null - } - ] -}