What about --mangle-props being on and --mangle being off?

This commit is contained in:
Fábio Santos
2015-08-10 21:13:30 +01:00
parent 7ee8f3512e
commit adee5023c0
2 changed files with 5 additions and 7 deletions

View File

@@ -1187,6 +1187,11 @@ function OutputStream(options) {
output.print(':');
output.space();
output.print(def.mangled_name);
} else if (!(def && def.mangled_name) && self.mangled_key) {
output.print(name);
output.print(':');
output.space();
output.print(def.name);
} else {
output.print(name);
}

View File

@@ -118,13 +118,6 @@ module.exports = function () {
ok.equal(expanding_def.name.names[0].TYPE, 'SymbolVar');
ok.equal(expanding_def.name.names[1].TYPE, 'Expansion');
ok.equal(expanding_def.name.names[1].symbol.TYPE, 'SymbolVar');
ok.throws(function () {
// Note: this *is* a valid destructuring, but before we implement
// destructuring (right now it's only destructuring *arguments*),
// this won't do.
UglifyJS.parse('[{a}]');
});
}
// Run standalone