Skip to content

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole committed Sep 23, 2024
1 parent 0998c20 commit e20a87c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/lib/specialize_js.ml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ let specialize_instr ~target info i =
, Prim
( Extern (("caml_js_var" | "caml_js_expr" | "caml_pure_js_expr") as prim)
, [ (Pv _ as y) ] ) )
, target )
when Poly.equal target `Wasm || Config.Flag.safe_string () -> (
, target ) -> (
match the_string_of ~target info y with
| Some s -> Let (x, Prim (Extern prim, [ Pc (String s) ]))
| _ -> i)
Expand Down

0 comments on commit e20a87c

Please sign in to comment.