[Pkg-javascript-commits] [uglifyjs] 187/491: fix gzip stream in `test/benchmark.js` (#2228)

Jonas Smedegaard dr at jones.dk
Wed Feb 14 19:51:34 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 c615a1e80aa0960fa7eb888e1bc085e70d3c7bfe
Author: Alex Lam S.L <alexlamsl at gmail.com>
Date:   Wed Jul 12 02:55:57 2017 +0800

    fix gzip stream in `test/benchmark.js` (#2228)
---
 test/benchmark.js | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/test/benchmark.js b/test/benchmark.js
index 569d447..8b20ec1 100644
--- a/test/benchmark.js
+++ b/test/benchmark.js
@@ -64,14 +64,13 @@ urls.forEach(function(url) {
         }).pipe(uglifyjs.stdin);
         uglifyjs.stdout.on("data", function(data) {
             results[url].output += data.length;
-        }).pipe(createHash("sha1")).on("data", function(data) {
-            results[url].sha1 = data.toString("hex");
-            done();
-        });
-        uglifyjs.stdout.pipe(zlib.createGzip({
+        }).pipe(zlib.createGzip({
             level: zlib.Z_BEST_COMPRESSION
         })).on("data", function(data) {
             results[url].gzip += data.length;
+        }).pipe(createHash("sha1")).on("data", function(data) {
+            results[url].sha1 = data.toString("hex");
+            done();
         });
         uglifyjs.stderr.setEncoding("utf8");
         uglifyjs.stderr.on("data", function(data) {

-- 
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