diff options
author | Mihai Bazon <mihai.bazon@gmail.com> | 2013-10-27 01:01:11 -0700 |
---|---|---|
committer | Mihai Bazon <mihai.bazon@gmail.com> | 2013-10-27 01:01:11 -0700 |
commit | 0d6e08c54148e4f119971069488224441609c204 (patch) | |
tree | faf0e9dd007ec2c431a9a673530a42fd8294841d | |
parent | cfd5c6155c4774b4def6711c5159d9080148a7ae (diff) | |
parent | e2daee9a655160e4eeea6dee4ceddfe0049ebacf (diff) | |
download | tracifyjs-0d6e08c54148e4f119971069488224441609c204.tar.gz tracifyjs-0d6e08c54148e4f119971069488224441609c204.zip |
Merge pull request #331 from rvanvelzen/rhs-strings-fix
Fix RHS concat (raised in #330)
-rw-r--r-- | lib/compress.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index 121e312a..13ae7c70 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -2067,7 +2067,8 @@ merge(Compressor.prototype, { && self.left.right instanceof AST_Constant && self.right instanceof AST_Binary && self.right.operator == "+" - && self.right.left instanceof AST_Constant) { + && self.right.left instanceof AST_Constant + && self.right.is_string(compressor)) { self = make_node(AST_Binary, self, { operator: "+", left: make_node(AST_Binary, self.left, { |