Bug 1228841 - Part 3: Remove conditional catch handling in devtools. r=jdescottes
authorTooru Fujisawa <arai_a@mac.com>
Wed, 06 Dec 2017 23:44:17 +0900
changeset 708627 cbb7aa8c2ac8138ea4c2257301b09a63ec2cc908
parent 708626 5e4cbc76568b6ea32330e0ef2b55c898b5095d8b
child 708628 a90317cd54ba39d47ded48c048bfd695e53c7bcd
push id92403
push userVYV03354@nifty.ne.jp
push dateWed, 06 Dec 2017 22:18:41 +0000
reviewersjdescottes
bugs1228841
milestone59.0a1
Bug 1228841 - Part 3: Remove conditional catch handling in devtools. r=jdescottes
devtools/shared/Parser.jsm
--- a/devtools/shared/Parser.jsm
+++ b/devtools/shared/Parser.jsm
@@ -1129,17 +1129,16 @@ var SyntaxTreeVisitor = {
 
   /**
    * A try statement.
    *
    * interface TryStatement <: Statement {
    *   type: "TryStatement";
    *   block: BlockStatement;
    *   handler: CatchClause | null;
-   *   guardedHandlers: [ CatchClause ];
    *   finalizer: BlockStatement | null;
    * }
    */
   TryStatement(node, parent, callbacks) {
     node._parent = parent;
 
     if (this.break) {
       return;
@@ -1151,19 +1150,16 @@ var SyntaxTreeVisitor = {
     }
     if (callbacks.onTryStatement) {
       callbacks.onTryStatement(node);
     }
     this[node.block.type](node.block, node, callbacks);
     if (node.handler) {
       this[node.handler.type](node.handler, node, callbacks);
     }
-    for (let guardedHandler of node.guardedHandlers) {
-      this[guardedHandler.type](guardedHandler, node, callbacks);
-    }
     if (node.finalizer) {
       this[node.finalizer.type](node.finalizer, node, callbacks);
     }
   },
 
   /**
    * A while statement.
    *