Permalink
Browse files

[fix] js cleaning: 'new' expression wasn't considered as a potential …

…side effect
  • Loading branch information...
Mathieu Barbin
Mathieu Barbin committed Jun 23, 2011
1 parent 776f981 commit 300cb88c1e37680475e0818e5554f76a3566d777
Showing with 1 addition and 0 deletions.
  1. +1 −0 qmljsimp/imp_Common.ml
View
@@ -82,6 +82,7 @@ let does_side_effects e =
JsWalk.OnlyExpr.exists
(function
| J.Je_hole _
+ | J.Je_new _
| J.Je_call (_,_,_,false) -> true
| J.Je_unop (_, ( J.Ju_delete
| J.Ju_add2_pre

0 comments on commit 300cb88

Please sign in to comment.