expand parameters

Conflicts:
	test/compress/harmony.js
This commit is contained in:
Fábio Santos
2015-04-13 01:26:26 +01:00
committed by Richard van Velzen
parent e8664e63ef
commit 9863f0efa3
5 changed files with 89 additions and 7 deletions

View File

@@ -1107,6 +1107,9 @@ merge(Compressor.prototype, {
break;
} else {
var sym = a[i];
if (sym instanceof AST_Expansion) {
sym = sym.symbol;
}
if (sym.unreferenced()) {
a.pop();
compressor.warn("Dropping unused function argument {name} [{file}:{line},{col}]", {