aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2013-10-30 09:11:55 +0200
committerMihai Bazon <mihai@bazon.net>2013-10-30 09:11:55 +0200
commite4c530240650535d1cb46569dfb013193471af05 (patch)
tree2a527a6c682b23889d30a5360170e0d3df715773 /lib
parentbea3d90771e98c44a6c20578aabd9ebc81edb6ed (diff)
downloadtracifyjs-e4c530240650535d1cb46569dfb013193471af05.tar.gz
tracifyjs-e4c530240650535d1cb46569dfb013193471af05.zip
Fix output for `x = 2 * (a % b / b * c)`
(issue #337)
Diffstat (limited to 'lib')
-rw-r--r--lib/output.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/output.js b/lib/output.js
index 0114783a..abf57b54 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -481,11 +481,7 @@ function OutputStream(options) {
var so = this.operator, sp = PRECEDENCE[so];
if (pp > sp
|| (pp == sp
- && this === p.right
- && !(so == po &&
- (so == "*" ||
- so == "&&" ||
- so == "||")))) {
+ && this === p.right)) {
return true;
}
}