diff options
author | Mihai Bazon <mihai.bazon@gmail.com> | 2013-10-27 01:01:57 -0700 |
---|---|---|
committer | Mihai Bazon <mihai.bazon@gmail.com> | 2013-10-27 01:01:57 -0700 |
commit | 8979579e55025a72caf580788b48831cd7d623de (patch) | |
tree | d858d51edc7b9960e41ad8080b5530bde6b07def | |
parent | 0d6e08c54148e4f119971069488224441609c204 (diff) | |
parent | 9cd118ca3d3e9882e4ecb14b153aa05cb070b453 (diff) | |
download | tracifyjs-8979579e55025a72caf580788b48831cd7d623de.tar.gz tracifyjs-8979579e55025a72caf580788b48831cd7d623de.zip |
Merge pull request #330 from markjaquith/master
Unit test to detect issue in 8d14efe for #126 that causes aggressive parenthesis removal, functional differences
-rw-r--r-- | test/compress/issue-126.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/compress/issue-126.js b/test/compress/issue-126.js index 1e654941..7a597b87 100644 --- a/test/compress/issue-126.js +++ b/test/compress/issue-126.js @@ -10,6 +10,7 @@ concatenate_rhs_strings: { foo(bar() + 123 + "Hello" + "World" + ("Foo" + "Bar")); foo("Foo" + "Bar" + bar() + 123 + "Hello" + "World" + ("Foo" + "Bar")); foo("Hello" + bar() + 123 + "World"); + foo(bar() + 'Foo' + (10 + parseInt('10'))); } expect: { foo(bar() + 123 + "HelloWorld"); @@ -18,5 +19,6 @@ concatenate_rhs_strings: { foo(bar() + 123 + "HelloWorldFooBar"); foo("FooBar" + bar() + "123HelloWorldFooBar"); foo("Hello" + bar() + "123World"); + foo(bar() + 'Foo' + (10 + parseInt('10'))); } } |