fixed tests (need to drop the toplevel block in "expected" if it's a single statement)
This commit is contained in:
@@ -473,7 +473,7 @@ function Compressor(options, false_by_default) {
|
||||
SQUEEZE(AST_BlockStatement, function(self, compressor){
|
||||
self = self.clone();
|
||||
self.body = tighten_body(self.body, compressor);
|
||||
if (self.body.length == 1 && !self.required)
|
||||
if (self.body.length == 1)
|
||||
return self.body[0];
|
||||
return self;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user