--- old/test/script/basic/parser/tryCatchStat.js.EXPECTED 2015-03-09 18:39:00.723686624 +0530 +++ new/test/script/basic/parser/tryCatchStat.js.EXPECTED 2015-03-09 18:39:00.635686190 +0530 @@ -2,32 +2,24 @@ "type": "Program", "body": [ { - "type": "BlockStatement", + "type": "TryStatement", "block": { "type": "BlockStatement", - "body": [ - { - "type": "TryStatement", - "block": { - "type": "BlockStatement", - "body": [] - }, - "guardedHandlers": [], - "handler": { - "type": "CatchClause", - "param": { - "type": "Identifier", - "name": "e" - }, - "body": { - "type": "BlockStatement", - "body": [] - } - }, - "finalizer": null - } - ] - } + "body": [] + }, + "guardedHandlers": [], + "handler": { + "type": "CatchClause", + "param": { + "type": "Identifier", + "name": "e" + }, + "body": { + "type": "BlockStatement", + "body": [] + } + }, + "finalizer": null } ] } @@ -35,34 +27,26 @@ "type": "Program", "body": [ { - "type": "BlockStatement", + "type": "TryStatement", "block": { "type": "BlockStatement", - "body": [ - { - "type": "TryStatement", - "block": { - "type": "BlockStatement", - "body": [] - }, - "guardedHandlers": [], - "handler": { - "type": "CatchClause", - "param": { - "type": "Identifier", - "name": "e" - }, - "body": { - "type": "BlockStatement", - "body": [] - } - }, - "finalizer": { - "type": "BlockStatement", - "body": [] - } - } - ] + "body": [] + }, + "guardedHandlers": [], + "handler": { + "type": "CatchClause", + "param": { + "type": "Identifier", + "name": "e" + }, + "body": { + "type": "BlockStatement", + "body": [] + } + }, + "finalizer": { + "type": "BlockStatement", + "body": [] } } ] @@ -71,24 +55,16 @@ "type": "Program", "body": [ { - "type": "BlockStatement", + "type": "TryStatement", "block": { "type": "BlockStatement", - "body": [ - { - "type": "TryStatement", - "block": { - "type": "BlockStatement", - "body": [] - }, - "guardedHandlers": [], - "handler": null, - "finalizer": { - "type": "BlockStatement", - "body": [] - } - } - ] + "body": [] + }, + "guardedHandlers": [], + "handler": null, + "finalizer": { + "type": "BlockStatement", + "body": [] } } ] @@ -97,44 +73,36 @@ "type": "Program", "body": [ { - "type": "BlockStatement", + "type": "TryStatement", "block": { "type": "BlockStatement", - "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": [] - } - } - ] + "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 - } - ] - } + } + ] + } + }, + "finalizer": null } ] } @@ -142,67 +110,59 @@ "type": "Program", "body": [ { - "type": "BlockStatement", + "type": "TryStatement", "block": { "type": "BlockStatement", "body": [ { - "type": "TryStatement", - "block": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "that" - }, - "arguments": [] - } - } - ] - }, - "guardedHandlers": [], - "handler": { - "type": "CatchClause", - "param": { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { "type": "Identifier", - "name": "e" + "name": "that" }, - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "handle" - }, - "arguments": [] - } - } - ] + "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": [] - } - } - ] + } + ] + } + }, + "finalizer": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "clean" + }, + "arguments": [] } } ] @@ -214,92 +174,84 @@ "type": "Program", "body": [ { - "type": "BlockStatement", + "type": "TryStatement", "block": { "type": "BlockStatement", "body": [ { - "type": "TryStatement", - "block": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "that" - }, - "arguments": [] - } - } - ] - }, - "guardedHandlers": [ + "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": "CatchClause", - "param": { - "type": "Identifier", - "name": "e" - }, - "guard": { - "type": "BinaryExpression", - "operator": "instanceof", - "left": { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { "type": "Identifier", - "name": "e" + "name": "handle" }, - "right": { - "type": "Identifier", - "name": "TypeError" - } - }, - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "handle" - }, - "arguments": [] - } - } - ] + "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 + ] } - ] - } + } + ], + "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 } ] }