Don't print on throw statements with sequence exprs
This commit is contained in:
parent
2e11839257
commit
19daae6d96
@ -124,6 +124,10 @@ export function SequenceExpression(node: Object, parent: Object): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (t.isThrowStatement(parent)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Otherwise err on the side of overparenthesization, adding
|
||||
// explicit exceptions above if this proves overzealous.
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user