Skip to content

Commit a9340a3

Browse files
committed
tweak to avoid hidden bugs
1 parent 9c2fd55 commit a9340a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jscomp/core/js_pass_tailcall_inline.ml

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ let count_collects () =
5555
(* collect all def sites *)
5656
val defined_idents : J.variable_declaration Ident_hashtbl.t = Ident_hashtbl.create 83
5757

58-
val mutable export_set : Ident_set.t = Ident_set.empty
58+
val mutable my_export_set : Ident_set.t = Ident_set.empty
5959
val mutable name : string = ""
6060

6161
method add_use id =
6262
match Ident_hashtbl.find_opt stats id with
6363
| None -> Ident_hashtbl.add stats id (ref 1)
6464
| Some v -> incr v
6565
method! program x =
66-
export_set <- x.export_set ;
66+
my_export_set <- x.export_set ;
6767
name <- x.name;
6868
super#program x
6969
method! variable_declaration
@@ -78,7 +78,7 @@ let count_collects () =
7878
method! ident id = self#add_use id; self
7979
method get_stats =
8080
Ident_hashtbl.iter defined_idents (fun ident v ->
81-
if Ident_set.mem export_set ident then
81+
if Ident_set.mem my_export_set ident then
8282
Js_op_util.update_used_stats v.ident_info Exported
8383
else
8484
let pure =

0 commit comments

Comments
 (0)