Skip to content

Commit ea34b15

Browse files
committed
Toplevel: fix for when use-js-strings is disabled
1 parent c75b7b7 commit ea34b15

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
* Runtime: fix caml_string_concat when not using JS strings (#1874)
5050
* Runtime: consistent bigarray hashing across all architectures (#1977)
5151
* Tools: fix jsoo_mktop and jsoo_mkcmis (#1877)
52+
* Toplevel: fix for when use-js-strings is disabled (#1997)
5253

5354
# 6.0.1 (2025-02-07) - Lille
5455

lib/runtime/jsoo_runtime.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ module Sys = struct
133133
| `Double_translation
134134
]
135135

136-
external effects_ : unit -> string = "caml_jsoo_flags_effects"
136+
external effects_ : unit -> Js.t = "caml_jsoo_flags_effects"
137137

138138
let effects () =
139-
match effects_ () with
139+
match Js.to_string (effects_ ()) with
140140
| "disabled" -> `Disabled
141141
| "cps" -> `Cps
142142
| "double-translation" -> `Double_translation

0 commit comments

Comments
 (0)