This commit is contained in:
Armagan Amcalar 2017-03-08 21:52:15 +00:00 committed by GitHub
commit 988f937cfa

View File

@ -1813,6 +1813,7 @@ merge(Compressor.prototype, {
if (!compressor.option("keep_fargs")) {
for (var a = node.argnames, i = a.length; --i >= 0;) {
var sym = a[i];
if (!sym) break;
if (!(sym.definition().id in in_use_ids)) {
a.pop();
compressor.warn("Dropping unused function argument {name} [{file}:{line},{col}]", {