From 785c6064cc4d28f3453e88fba3e085c4e2eaf553 Mon Sep 17 00:00:00 2001 From: Richard van Velzen Date: Tue, 29 Oct 2013 21:37:36 +0100 Subject: Disallow reversal where lhs has higher or equal precedence Fixes #267 --- test/compress/issue-267.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/compress/issue-267.js (limited to 'test/compress') 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; + } +} -- cgit v1.2.3