diff options
author | kzc <zaxxon2011@gmail.com> | 2016-01-29 10:35:07 -0500 |
---|---|---|
committer | kzc <zaxxon2011@gmail.com> | 2016-01-29 10:35:07 -0500 |
commit | 7c3fee9e31e80fe60d1d776cdf81d9283490ff87 (patch) | |
tree | fc9d84082a44391b881a87000b94ecf8e60dc754 | |
parent | 929de2b0de0429bb076f73ebcbb19df53e4d1704 (diff) | |
download | tracifyjs-7c3fee9e31e80fe60d1d776cdf81d9283490ff87.tar.gz tracifyjs-7c3fee9e31e80fe60d1d776cdf81d9283490ff87.zip |
collapse_vars: avoid replacement across AST_Case nodes to be on safe side even though no issues seen.
-rw-r--r-- | lib/compress.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js index 68471a5e..6fdf8f2d 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -320,6 +320,7 @@ merge(Compressor.prototype, { if (node instanceof AST_Lambda || node instanceof AST_Try || node instanceof AST_With + || node instanceof AST_Case || node instanceof AST_IterationStatement || (parent instanceof AST_If && node !== parent.condition) || (parent instanceof AST_Conditional && node !== parent.condition) |