aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/output.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/output.js b/lib/output.js
index d71f6aac..c8c8739f 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -596,7 +596,9 @@ function OutputStream(options) {
var p = output.parent();
return p instanceof AST_PropAccess && p.expression === this
|| p instanceof AST_Call && p.expression === this
- || p instanceof AST_Unary && p.operator != "+" && p.operator != "-";
+ || p instanceof AST_Unary && p.operator != "+" && p.operator != "-"
+ || p instanceof AST_Binary && p.right === this
+ && (p.operator == "/" || p.operator == "%");
});
PARENS(AST_Seq, function(output){