https://github.com/mishoo/UglifyJS
Revision b19aa58cff73ea59438346db094de4a54463d669 authored by Alex Lam S.L on 25 March 2017, 15:03:26 UTC, committed by GitHub on 25 March 2017, 15:03:26 UTC
`AST_Try` is an `AST_Block`, so besides try block we also need to inspect catch and finally blocks for possible side effects.

Also extend this functionality to handle `AST_If` and `AST_LabeledStatement` while we are at it.

fixes #1673
1 parent 0a65de8
History
Tip revision: b19aa58cff73ea59438346db094de4a54463d669 authored by Alex Lam S.L on 25 March 2017, 15:03:26 UTC
fix `has_side_effects()` (#1675)
Tip revision: b19aa58
File Mode Size
.github
bin
lib
test
tools
.gitattributes -rw-r--r-- 20 bytes
.gitignore -rw-r--r-- 35 bytes
.travis.yml -rw-r--r-- 181 bytes
LICENSE -rw-r--r-- 1.3 KB
README.md -rw-r--r-- 40.5 KB
appveyor.yml -rw-r--r-- 350 bytes
package.json -rw-r--r-- 1.2 KB

README.md

back to top