node = parent;
parent = compressor.parent(level++);
if (parent instanceof AST_Exit) {
+ var try_node = find_try(level);
+ if (try_node) {
+ if (try_node.bfinally) break;
+ if (parent instanceof AST_Throw && try_node.bcatch) break;
+ }
if (self.operator == "=") return self.right;
return make_node(AST_Binary, self, {
operator: self.operator.slice(0, -1),
}
}
return self;
+
+ function find_try(level) {
+ var scope = self.left.definition().scope;
+ var parent;
+ while ((parent = compressor.parent(level++)) !== scope) {
+ if (parent instanceof AST_Try) return parent;
+ }
+ }
});
OPT(AST_Conditional, function(self, compressor){