Skip to content

Commit a846eac

Browse files
committed
snapshot changes
1 parent 6df691f commit a846eac

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

lib/4.06.1/unstable/js_compiler.ml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89035,16 +89035,16 @@ let rec float_equal ?comment (e0 : t) (e1 : t) : t =
8903589035
| Number (Int {i = i0 ; _}), Number (Int {i = i1; }) ->
8903689036
bool (i0 = i1)
8903789037
| Undefined , Undefined -> true_
89038-
| (Bin(Bor,
89038+
(* | (Bin(Bor,
8903989039
{expression_desc = Number(Int {i = 0l; _})},
8904089040
({expression_desc = Caml_block_tag _; _} as a ))
8904189041
|
8904289042
Bin(Bor,
8904389043
({expression_desc = Caml_block_tag _; _} as a),
8904489044
{expression_desc = Number (Int {i = 0l; _})})),
89045-
Number (Int {i = 0l; _})
89045+
Number (Int {i = 0l;}) when e1.comment = None
8904689046
-> (** (x.tag | 0) === 0 *)
89047-
not a
89047+
not a *)
8904889048
| (Bin(Bor,
8904989049
{expression_desc = Number(Int {i = 0l; _})},
8905089050
({expression_desc = Caml_block_tag _; _} as a ))
@@ -105078,12 +105078,12 @@ let lambda ppf v =
105078105078
List.iter
105079105079
(fun (n, l) ->
105080105080
if !spc then fprintf ppf "@ " else spc := true;
105081-
fprintf ppf "@[<hv 1>case int %i:@ %a@]" n lam l)
105081+
fprintf ppf "@[<hv 1>case int %i %S:@ %a@]" n (match sw.sw_names with None -> "" | Some x -> x.consts.(n)) lam l)
105082105082
sw.sw_consts;
105083105083
List.iter
105084105084
(fun (n, l) ->
105085105085
if !spc then fprintf ppf "@ " else spc := true;
105086-
fprintf ppf "@[<hv 1>case tag %i:@ %a@]" n lam l)
105086+
fprintf ppf "@[<hv 1>case tag %i %S:@ %a@]" n (match sw.sw_names with None -> "" | Some x -> x.blocks.(n)) lam l)
105087105087
sw.sw_blocks ;
105088105088
begin match sw.sw_failaction with
105089105089
| None -> ()

lib/4.06.1/unstable/js_refmt_compiler.ml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89035,16 +89035,16 @@ let rec float_equal ?comment (e0 : t) (e1 : t) : t =
8903589035
| Number (Int {i = i0 ; _}), Number (Int {i = i1; }) ->
8903689036
bool (i0 = i1)
8903789037
| Undefined , Undefined -> true_
89038-
| (Bin(Bor,
89038+
(* | (Bin(Bor,
8903989039
{expression_desc = Number(Int {i = 0l; _})},
8904089040
({expression_desc = Caml_block_tag _; _} as a ))
8904189041
|
8904289042
Bin(Bor,
8904389043
({expression_desc = Caml_block_tag _; _} as a),
8904489044
{expression_desc = Number (Int {i = 0l; _})})),
89045-
Number (Int {i = 0l; _})
89045+
Number (Int {i = 0l;}) when e1.comment = None
8904689046
-> (** (x.tag | 0) === 0 *)
89047-
not a
89047+
not a *)
8904889048
| (Bin(Bor,
8904989049
{expression_desc = Number(Int {i = 0l; _})},
8905089050
({expression_desc = Caml_block_tag _; _} as a ))
@@ -105078,12 +105078,12 @@ let lambda ppf v =
105078105078
List.iter
105079105079
(fun (n, l) ->
105080105080
if !spc then fprintf ppf "@ " else spc := true;
105081-
fprintf ppf "@[<hv 1>case int %i:@ %a@]" n lam l)
105081+
fprintf ppf "@[<hv 1>case int %i %S:@ %a@]" n (match sw.sw_names with None -> "" | Some x -> x.consts.(n)) lam l)
105082105082
sw.sw_consts;
105083105083
List.iter
105084105084
(fun (n, l) ->
105085105085
if !spc then fprintf ppf "@ " else spc := true;
105086-
fprintf ppf "@[<hv 1>case tag %i:@ %a@]" n lam l)
105086+
fprintf ppf "@[<hv 1>case tag %i %S:@ %a@]" n (match sw.sw_names with None -> "" | Some x -> x.blocks.(n)) lam l)
105087105087
sw.sw_blocks ;
105088105088
begin match sw.sw_failaction with
105089105089
| None -> ()

lib/4.06.1/whole_compiler.ml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -378932,16 +378932,16 @@ let rec float_equal ?comment (e0 : t) (e1 : t) : t =
378932378932
| Number (Int {i = i0 ; _}), Number (Int {i = i1; }) ->
378933378933
bool (i0 = i1)
378934378934
| Undefined , Undefined -> true_
378935-
| (Bin(Bor,
378935+
(* | (Bin(Bor,
378936378936
{expression_desc = Number(Int {i = 0l; _})},
378937378937
({expression_desc = Caml_block_tag _; _} as a ))
378938378938
|
378939378939
Bin(Bor,
378940378940
({expression_desc = Caml_block_tag _; _} as a),
378941378941
{expression_desc = Number (Int {i = 0l; _})})),
378942-
Number (Int {i = 0l; _})
378942+
Number (Int {i = 0l;}) when e1.comment = None
378943378943
-> (** (x.tag | 0) === 0 *)
378944-
not a
378944+
not a *)
378945378945
| (Bin(Bor,
378946378946
{expression_desc = Number(Int {i = 0l; _})},
378947378947
({expression_desc = Caml_block_tag _; _} as a ))
@@ -387554,12 +387554,12 @@ let lambda ppf v =
387554387554
List.iter
387555387555
(fun (n, l) ->
387556387556
if !spc then fprintf ppf "@ " else spc := true;
387557-
fprintf ppf "@[<hv 1>case int %i:@ %a@]" n lam l)
387557+
fprintf ppf "@[<hv 1>case int %i %S:@ %a@]" n (match sw.sw_names with None -> "" | Some x -> x.consts.(n)) lam l)
387558387558
sw.sw_consts;
387559387559
List.iter
387560387560
(fun (n, l) ->
387561387561
if !spc then fprintf ppf "@ " else spc := true;
387562-
fprintf ppf "@[<hv 1>case tag %i:@ %a@]" n lam l)
387562+
fprintf ppf "@[<hv 1>case tag %i %S:@ %a@]" n (match sw.sw_names with None -> "" | Some x -> x.blocks.(n)) lam l)
387563387563
sw.sw_blocks ;
387564387564
begin match sw.sw_failaction with
387565387565
| None -> ()

0 commit comments

Comments
 (0)