diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-11-07 13:02:51 +0200 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-11-07 13:02:51 +0200 |
commit | 80da21dab467e9214d5908fca0a54d1242b3c443 (patch) | |
tree | e4d0a4e7702b6fbcc4829761978ac50ce850face | |
parent | bb0e4d7126692b7dfa1d4a71b67f6a87c443d07e (diff) | |
download | tracifyjs-80da21dab467e9214d5908fca0a54d1242b3c443.tar.gz tracifyjs-80da21dab467e9214d5908fca0a54d1242b3c443.zip |
fix regression from 5346fb94 (shouldn't parenthesize i++ in x[i++])
-rw-r--r-- | lib/output.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output.js b/lib/output.js index 321c7222..ad4690d5 100644 --- a/lib/output.js +++ b/lib/output.js @@ -412,7 +412,7 @@ function OutputStream(options) { PARENS(AST_Unary, function(output){ var p = output.parent(); - return p instanceof AST_PropAccess; + return p instanceof AST_PropAccess && p.expression === this; }); PARENS(AST_Seq, function(output){ |