Add a test to verify that destructuring arguments work with #203 code

This commit is contained in:
Fábio Santos
2015-01-15 20:08:06 +00:00
committed by Richard van Velzen
parent 96b89e34a3
commit ad344c5be3
2 changed files with 30 additions and 1 deletions

View File

@@ -1802,7 +1802,6 @@ merge(Compressor.prototype, {
if (ex !== ast) throw ex;
};
if (!fun) return self;
// TODO does this work with destructuring? Test it.
var args = fun.argnames.map(function(arg, i){
return make_node(AST_String, self.args[i], {
value: arg.print_to_string()