minor clean-ups (#3588)

This commit is contained in:
Alex Lam S.L
2019-11-16 00:40:22 +08:00
committed by GitHub
parent 4027f87717
commit dcfc4aca5b
2 changed files with 1 additions and 3 deletions

View File

@@ -1176,7 +1176,6 @@ merge(Compressor.prototype, {
}
// These node types have child nodes that execute sequentially,
// but are otherwise not safe to scan into or beyond them.
var sym;
if (is_last_node(node, parent) || may_throw(node)) {
stop_after = node;
if (node instanceof AST_Scope) abort = true;
@@ -7163,7 +7162,6 @@ merge(Compressor.prototype, {
OPT(AST_Object, function(self, compressor) {
if (!compressor.option("objects") || compressor.has_directive("use strict")) return self;
var props = self.properties;
var keys = new Dictionary();
var values = [];
self.properties.forEach(function(prop) {

View File

@@ -252,7 +252,7 @@ function minify(files, options) {
properties: 1e-3 * (timings.output - timings.properties),
output: 1e-3 * (timings.end - timings.output),
total: 1e-3 * (timings.end - timings.start)
}
};
}
if (warnings.length) {
result.warnings = warnings;