change order of extends comparisons

This commit is contained in:
kzc 2017-05-17 13:38:58 -04:00
parent 765eb44259
commit 34682d0b53

View File

@ -1474,10 +1474,10 @@ function OutputStream(options) {
} }
if (self.extends) { if (self.extends) {
var parens = ( var parens = (
!(self.extends instanceof AST_ClassExpression) !(self.extends instanceof AST_SymbolRef)
&& !(self.extends instanceof AST_Function)
&& !(self.extends instanceof AST_SymbolRef)
&& !(self.extends instanceof AST_PropAccess) && !(self.extends instanceof AST_PropAccess)
&& !(self.extends instanceof AST_ClassExpression)
&& !(self.extends instanceof AST_Function)
); );
output.print("extends"); output.print("extends");
if (parens) { if (parens) {