Skip to content

Commit cd2cec4

Browse files
committed
snapshot
1 parent b87edbb commit cd2cec4

File tree

3 files changed

+36
-6
lines changed

3 files changed

+36
-6
lines changed

lib/4.06.1/unstable/js_compiler.ml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84525,8 +84525,18 @@ let property_access f s =
8452584525
end
8452684526
else
8452784527
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+
)
8453084540
end
8453184541

8453284542
let property_key f (s : J.property_name) =

lib/4.06.1/unstable/js_refmt_compiler.ml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84525,8 +84525,18 @@ let property_access f s =
8452584525
end
8452684526
else
8452784527
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+
)
8453084540
end
8453184541

8453284542
let property_key f (s : J.property_name) =

lib/4.06.1/whole_compiler.ml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377809,8 +377809,18 @@ let property_access f s =
377809377809
end
377810377810
else
377811377811
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+
)
377814377824
end
377815377825

377816377826
let property_key f (s : J.property_name) =

0 commit comments

Comments
 (0)