From 1476c78b53e760507a56189dfbdf82f8c07483f8 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Mon, 25 Dec 2017 03:07:46 +0800 Subject: 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 cc360950..8cfb56be 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 8b20ec13..59383606 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; -- cgit v1.2.3