diff options
author | Richard van Velzen <rvanvelzen1@gmail.com> | 2013-10-29 21:37:36 +0100 |
---|---|---|
committer | Richard van Velzen <rvanvelzen1@gmail.com> | 2013-10-29 21:37:36 +0100 |
commit | 785c6064cc4d28f3453e88fba3e085c4e2eaf553 (patch) | |
tree | e0394286a3f669d9d099e1f281a0b92d3d3c5ef9 /test/compress | |
parent | b214d3786fdb569b9ba5b885f0653927960d450f (diff) | |
download | tracifyjs-785c6064cc4d28f3453e88fba3e085c4e2eaf553.tar.gz tracifyjs-785c6064cc4d28f3453e88fba3e085c4e2eaf553.zip |
Disallow reversal where lhs has higher or equal precedence
Fixes #267
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/issue-267.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/compress/issue-267.js b/test/compress/issue-267.js new file mode 100644 index 00000000..7233d9f1 --- /dev/null +++ b/test/compress/issue-267.js @@ -0,0 +1,11 @@ +issue_267: { + options = { comparisons: true }; + input: { + x = a % b / b * c * 2; + x = a % b * 2 + } + expect: { + x = a % b / b * c * 2; + x = a % b * 2; + } +} |