fix diagnostic text (#3838)
authorAlex Lam S.L <alexlamsl@gmail.com>
Fri, 1 May 2020 10:55:06 +0000 (11:55 +0100)
committerGitHub <noreply@github.com>
Fri, 1 May 2020 10:55:06 +0000 (18:55 +0800)
test/jetstream.js

index 834f257..3ad9677 100644 (file)
@@ -41,7 +41,7 @@ if (typeof phantom == "undefined") {
                     var uglifyjs = child_process.spawn(process.argv[0], args, {
                         silent: true
                     }).on("exit", function(code) {
-                        console.log("uglifyjs", url.slice(site.length + 1), args.join(" "));
+                        console.log("uglifyjs", url.slice(site.length + 1), args.slice(1).join(" "));
                         console.log(stderr);
                         if (code) throw new Error("uglifyjs failed with code " + code);
                     });