File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -794,7 +794,7 @@ let rec simplify_and (e1 : t) (e2 : t) : t option =
794
794
| ( Bin
795
795
( EqEqEq ,
796
796
{expression_desc = Typeof {expression_desc = Var ia}},
797
- {expression_desc = Str {txt = " boolean" | " string" }} ),
797
+ {expression_desc = Str {txt = " boolean" | " string" | " number " }} ),
798
798
Bin
799
799
( EqEqEq ,
800
800
{expression_desc = Var ib},
@@ -806,7 +806,7 @@ let rec simplify_and (e1 : t) (e2 : t) : t option =
806
806
Bin
807
807
( EqEqEq ,
808
808
{expression_desc = Typeof {expression_desc = Var ia}},
809
- {expression_desc = Str {txt = " boolean" | " string" }} ) )
809
+ {expression_desc = Str {txt = " boolean" | " string" | " number " }} ) )
810
810
when Js_op_util. same_vident ia ib ->
811
811
(* Note: case boolean / Bool _ is handled above *)
812
812
Some false_
You can’t perform that action at this time.
0 commit comments