fix stack

This commit is contained in:
alexlamsl 2017-03-25 15:29:14 +08:00
parent dba64ee93d
commit f3fc8cb3d3

View File

@ -2584,7 +2584,8 @@ merge(Compressor.prototype, {
}); });
} }
}); });
tt.stack = compressor.stack.slice(); // so that's able to see parent nodes // allow transform() to view the whole AST
tt.stack = compressor.stack.slice(0, -1);
self = self.transform(tt); self = self.transform(tt);
} catch(ex) { } catch(ex) {
if (ex !== self) throw ex; if (ex !== self) throw ex;