Skip to content

Commit dd49e68

Browse files
committed
avoid a regression
1 parent 8797070 commit dd49e68

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jscomp/core/js_pass_flatten_and_mark_dead.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ let subst_map name = object (self)
196196
List.fold_left
197197
(fun (i,e, acc) (x : J.expression) ->
198198
match x.expression_desc with
199-
| J.Var _ | Number _ | Str _
200-
->
199+
| J.Var _ | Number _ | Str _ | J.Bool _
200+
-> (* TODO: check the optimization *)
201201
(i + 1, x :: e, acc)
202202
| _ ->
203203
(* tradeoff,

lib/whole_compiler.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -89220,8 +89220,8 @@ let subst_map name = object (self)
8922089220
List.fold_left
8922189221
(fun (i,e, acc) (x : J.expression) ->
8922289222
match x.expression_desc with
89223-
| J.Var _ | Number _ | Str _
89224-
->
89223+
| J.Var _ | Number _ | Str _ | J.Bool _
89224+
-> (* TODO: check the optimization *)
8922589225
(i + 1, x :: e, acc)
8922689226
| _ ->
8922789227
(* tradeoff,

0 commit comments

Comments
 (0)