Skip to content

Commit 6b1510a

Browse files
vouillonhhugo
authored andcommitted
Toplevel: fix for when use-js-strings is disabled
1 parent c599c2c commit 6b1510a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
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

runtime/js/jslib.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,9 @@ function caml_jsoo_flags_use_js_string(unit) {
134134
}
135135

136136
//Provides: caml_jsoo_flags_effects
137+
//Requires: caml_string_of_jsstring
137138
function caml_jsoo_flags_effects(unit) {
138-
return CONFIG("effects");
139+
return caml_string_of_jsstring(CONFIG("effects"));
139140
}
140141

141142
//Provides: caml_wrap_exception const (mutable)

0 commit comments

Comments
 (0)