implement AST validation (#3863)

This commit is contained in:
Alex Lam S.L
2020-05-09 02:58:03 +01:00
committed by GitHub
parent b06fd8a933
commit f74b7f7401
8 changed files with 290 additions and 44 deletions

View File

@@ -14,9 +14,9 @@ if (typeof phantom == "undefined") {
args.splice(debug, 1);
debug = true;
}
args.unshift("bin/uglifyjs");
if (!args.length) args.push("-mcb", "beautify=false,webkit");
args.push("--timings");
args.unshift("bin/uglifyjs");
args.push("--validate", "--timings");
var child_process = require("child_process");
var fetch = require("./fetch");
var http = require("http");