Skip to content

Commit 10345af

Browse files
committed
jsoo_minify: do not perform constant sharing, as it pollutes the global namespace (fixes #329)
1 parent 19f1208 commit 10345af

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/minify.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ let f {
8181
let open Option in
8282
let passes : ((unit -> bool) * (unit -> Js_traverse.mapper)) list =
8383
[ Optim.shortvar, (fun () -> ((new Js_traverse.rename_variable toplevel_def) :> Js_traverse.mapper) );
84-
Optim.share_constant, (fun () -> new Js_traverse.share_constant);
8584
true_, (fun () -> new Js_traverse.simpl);
8685
true_, (fun () -> new Js_traverse.clean);
8786
] in

0 commit comments

Comments
 (0)