introduce compressor.info() (#1633)

report the following only when `options.warnings = "verbose"`
- unused elements due to inlining
- collpased variables
This commit is contained in:
Alex Lam S.L
2017-03-23 06:49:49 +08:00
committed by GitHub
parent a00040dd93
commit c0f3feae9f
3 changed files with 12 additions and 10 deletions

View File

@@ -114,7 +114,7 @@ function run_compress_tests() {
U.AST_Node.warn_function = function(text) {
warnings_emitted.push("WARN: " + text);
};
options.warnings = true;
if (!options.warnings) options.warnings = true;
}
var cmp = new U.Compressor(options, true);
var output_options = test.beautify || {};