kill opera (#1869)
This commit is contained in:
@@ -1097,11 +1097,10 @@ merge(Compressor.prototype, {
|
|||||||
statements.forEach(function(stat){
|
statements.forEach(function(stat){
|
||||||
if (prev) {
|
if (prev) {
|
||||||
if (stat instanceof AST_For) {
|
if (stat instanceof AST_For) {
|
||||||
var opera = {};
|
|
||||||
try {
|
try {
|
||||||
prev.body.walk(new TreeWalker(function(node){
|
prev.body.walk(new TreeWalker(function(node){
|
||||||
if (node instanceof AST_Binary && node.operator == "in")
|
if (node instanceof AST_Binary && node.operator == "in")
|
||||||
throw opera;
|
throw cons_seq;
|
||||||
}));
|
}));
|
||||||
if (stat.init && !(stat.init instanceof AST_Definitions)) {
|
if (stat.init && !(stat.init instanceof AST_Definitions)) {
|
||||||
stat.init = cons_seq(stat.init);
|
stat.init = cons_seq(stat.init);
|
||||||
@@ -1111,7 +1110,7 @@ merge(Compressor.prototype, {
|
|||||||
ret.pop();
|
ret.pop();
|
||||||
}
|
}
|
||||||
} catch(ex) {
|
} catch(ex) {
|
||||||
if (ex !== opera) throw ex;
|
if (ex !== cons_seq) throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (stat instanceof AST_If) {
|
else if (stat instanceof AST_If) {
|
||||||
|
|||||||
Reference in New Issue
Block a user