diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-11-16 00:40:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-16 00:40:22 +0800 |
commit | dcfc4aca5b97419150e742f2f94c40cdd8497189 (patch) | |
tree | 10d9a8f0624e352e88b8949b1ca2b15b1cb27743 | |
parent | 4027f87717bb68c309bd5e41e42607cffe624f35 (diff) | |
download | tracifyjs-dcfc4aca5b97419150e742f2f94c40cdd8497189.tar.gz tracifyjs-dcfc4aca5b97419150e742f2f94c40cdd8497189.zip |
minor clean-ups (#3588)
-rw-r--r-- | lib/compress.js | 2 | ||||
-rw-r--r-- | lib/minify.js | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/compress.js b/lib/compress.js index 668293d2..9d844b81 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -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) { diff --git a/lib/minify.js b/lib/minify.js index 93f1295e..72d99576 100644 --- a/lib/minify.js +++ b/lib/minify.js @@ -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; |