[Pkg-javascript-commits] [uglifyjs] 361/491: add `html-minifier` to benchmarks (#2646)
Jonas Smedegaard
dr at jones.dk
Wed Feb 14 19:51:52 UTC 2018
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/3.3.10-1
in repository uglifyjs.
commit 1476c78b53e760507a56189dfbdf82f8c07483f8
Author: Alex Lam S.L <alexlamsl at gmail.com>
Date: Mon Dec 25 03:07:46 2017 +0800
add `html-minifier` to benchmarks (#2646)
---
lib/compress.js | 2 +-
test/benchmark.js | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/compress.js b/lib/compress.js
index cc36095..8cfb56b 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -3948,7 +3948,7 @@ merge(Compressor.prototype, {
&& !fn.contains_this()
&& can_flatten_args(fn)
&& (value = flatten_body(stat))) {
- var expressions = flatten_args(fn, scope);
+ var expressions = flatten_args(fn);
expressions.push(value.clone(true));
return make_sequence(self, expressions).optimize(compressor);
}
diff --git a/test/benchmark.js b/test/benchmark.js
index 8b20ec1..5938360 100644
--- a/test/benchmark.js
+++ b/test/benchmark.js
@@ -21,6 +21,7 @@ var urls = [
"http://builds.emberjs.com/tags/v2.11.0/ember.prod.js",
"https://cdn.jsdelivr.net/lodash/4.17.4/lodash.js",
"https://cdnjs.cloudflare.com/ajax/libs/d3/4.5.0/d3.js",
+ "https://raw.githubusercontent.com/kangax/html-minifier/v3.5.7/dist/htmlminifier.js",
];
var results = {};
var remaining = 2 * urls.length;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list