File tree Expand file tree Collapse file tree 3 files changed +36
-6
lines changed Expand file tree Collapse file tree 3 files changed +36
-6
lines changed Original file line number Diff line number Diff line change @@ -84525,8 +84525,18 @@ let property_access f s =
84525
84525
end
84526
84526
else
84527
84527
begin
84528
- P.bracket_group f 1 @@ fun _ ->
84529
- Js_dump_string.pp_string f s
84528
+ P.bracket_group f 1 (fun _ ->
84529
+ (* avoid cases like
84530
+ "0123", "123_456"
84531
+ *)
84532
+ match string_of_int (int_of_string s ) with
84533
+ | s0 when s0 = s ->
84534
+ P.string f s
84535
+ | _ ->
84536
+ Js_dump_string.pp_string f s
84537
+ | exception _ ->
84538
+ Js_dump_string.pp_string f s
84539
+ )
84530
84540
end
84531
84541
84532
84542
let property_key f (s : J.property_name) =
Original file line number Diff line number Diff line change @@ -84525,8 +84525,18 @@ let property_access f s =
84525
84525
end
84526
84526
else
84527
84527
begin
84528
- P.bracket_group f 1 @@ fun _ ->
84529
- Js_dump_string.pp_string f s
84528
+ P.bracket_group f 1 (fun _ ->
84529
+ (* avoid cases like
84530
+ "0123", "123_456"
84531
+ *)
84532
+ match string_of_int (int_of_string s ) with
84533
+ | s0 when s0 = s ->
84534
+ P.string f s
84535
+ | _ ->
84536
+ Js_dump_string.pp_string f s
84537
+ | exception _ ->
84538
+ Js_dump_string.pp_string f s
84539
+ )
84530
84540
end
84531
84541
84532
84542
let property_key f (s : J.property_name) =
Original file line number Diff line number Diff line change @@ -377809,8 +377809,18 @@ let property_access f s =
377809
377809
end
377810
377810
else
377811
377811
begin
377812
- P.bracket_group f 1 @@ fun _ ->
377813
- Js_dump_string.pp_string f s
377812
+ P.bracket_group f 1 (fun _ ->
377813
+ (* avoid cases like
377814
+ "0123", "123_456"
377815
+ *)
377816
+ match string_of_int (int_of_string s ) with
377817
+ | s0 when s0 = s ->
377818
+ P.string f s
377819
+ | _ ->
377820
+ Js_dump_string.pp_string f s
377821
+ | exception _ ->
377822
+ Js_dump_string.pp_string f s
377823
+ )
377814
377824
end
377815
377825
377816
377826
let property_key f (s : J.property_name) =
You can’t perform that action at this time.
0 commit comments