tweak info message template
This commit is contained in:
parent
1baf3a8f10
commit
8264cdd15c
|
|
@ -792,8 +792,13 @@ merge(Compressor.prototype, {
|
||||||
// Further optimize statement after substitution.
|
// Further optimize statement after substitution.
|
||||||
stat.reset_opt_flags(compressor);
|
stat.reset_opt_flags(compressor);
|
||||||
|
|
||||||
compressor.info("Collapsing " + (is_constant ? "constant" : "variable") +
|
compressor.info("Collapsing {type} {name} [{file}:{line},{col}]", {
|
||||||
" " + var_name + " [{file}:{line},{col}]", node.start);
|
type: is_constant ? "constant" : "variable",
|
||||||
|
name: var_name,
|
||||||
|
file: node.start.file,
|
||||||
|
line: node.start.line,
|
||||||
|
col: node.start.col
|
||||||
|
});
|
||||||
CHANGED = true;
|
CHANGED = true;
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user