Fix compressing `do {...} while (false)`
authorMihai Bazon <mihai@bazon.net>
Tue, 19 Feb 2013 16:12:19 +0000 (18:12 +0200)
committerMihai Bazon <mihai@bazon.net>
Tue, 19 Feb 2013 16:12:19 +0000 (18:12 +0200)
commit3a591c43fedcf07e9303773dbb0852396729a402
tree3d8001a09845e596c1aa3170d7c1aad07bd0c8ad
parentdb66eca958b06e3082014fac95217911bbcfbee3
Fix compressing `do {...} while (false)`

It's not safe to transform it to {...} because the body might contain
`break`.  The solution could be more elaborate (detect if body contains
`break`) but I don't think it's worth the trouble.

Close #129
lib/compress.js