tweak info message template

This commit is contained in:
alexlamsl 2017-04-18 14:22:55 +08:00
parent 1baf3a8f10
commit 8264cdd15c

View File

@ -792,8 +792,13 @@ merge(Compressor.prototype, {
// Further optimize statement after substitution.
stat.reset_opt_flags(compressor);
compressor.info("Collapsing " + (is_constant ? "constant" : "variable") +
" " + var_name + " [{file}:{line},{col}]", node.start);
compressor.info("Collapsing {type} {name} [{file}:{line},{col}]", {
type: is_constant ? "constant" : "variable",
name: var_name,
file: node.start.file,
line: node.start.line,
col: node.start.col
});
CHANGED = true;
return value;
}