diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-11-30 11:16:09 +0200 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-11-30 11:16:09 +0200 |
commit | 5cc90db7d0c8983b6cae38df9dca540acbc1481b (patch) | |
tree | d715567deaa8ee47461d934e074bb0db2583956f /lib/compress.js | |
parent | f427e5efc76d7871d57f1f04b896254b4a872a86 (diff) | |
download | tracifyjs-5cc90db7d0c8983b6cae38df9dca540acbc1481b.tar.gz tracifyjs-5cc90db7d0c8983b6cae38df9dca540acbc1481b.zip |
Don't messup compressor stack while optimizing Switch
Fix #59
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index d78d41d6..c1cb1464 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1430,7 +1430,7 @@ merge(Compressor.prototype, { return node; } }); - tt.stack = compressor.stack; // so that's able to see parent nodes + tt.stack = compressor.stack.slice(); // so that's able to see parent nodes self = self.transform(tt); } catch(ex) { if (ex !== self) throw ex; |