Commit Graph

2 Commits

Author SHA1 Message Date
alexlamsl
2f6ce541a1 fix side-effects detection on switch statements
extension of #1675
2017-03-26 05:12:09 +08:00
Alex Lam S.L
b19aa58cff fix has_side_effects() (#1675)
`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
2017-03-25 23:03:26 +08:00