Skip to content

Commit 93b9f9b

Browse files
committed
small tweak to extract common code
1 parent 8730ad8 commit 93b9f9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jscomp/core/js_exp_make.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,8 @@ let rec econd ?comment (pred : t) (ifso : t) (ifnot : t) : t =
775775
| Js_not e, _, _ when not_empty_branch ifnot
776776
->
777777
econd ?comment e ifnot ifso
778+
| _, Seq (a,{expression_desc = Undefined}), Seq(b,{expression_desc = Undefined})
779+
-> seq (econd ?comment pred a b ) undefined
778780
| _ ->
779781
if Js_analyzer.eq_expression ifso ifnot then
780782
if no_side_effect pred then ifso else seq ?comment pred ifso

0 commit comments

Comments
 (0)