Add a test to verify that destructuring arguments work with #203 code
This commit is contained in:
committed by
Richard van Velzen
parent
96b89e34a3
commit
ad344c5be3
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user