Skip to content

Commit a546173

Browse files
committed
Wasm: fix Js.eval_string
1 parent 47783c7 commit a546173

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* Compiler: fix purity of comparison functions (again) (#2092)
1414
* Compiler: fix inlining (#2107)
1515
* Runtime/wasm: fix Unix.times (#2096)
16+
* Wasm: fix Js.eval_string (#2108)
1617

1718
# 6.2.0 (2025-07-30) - Lille
1819

compiler/lib-wasm/gc_target.ml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,11 +1710,7 @@ let internal_primitives =
17101710
in
17111711
List.iter
17121712
~f:register_js_expr
1713-
[ "caml_js_expr", `Mutator
1714-
; "caml_pure_js_expr", `Pure
1715-
; "caml_js_var", `Mutable
1716-
; "caml_js_eval_string", `Mutator
1717-
];
1713+
[ "caml_js_expr", `Mutator; "caml_pure_js_expr", `Pure; "caml_js_var", `Mutable ];
17181714
register "%caml_js_opt_call" (fun transl_prim_arg l ->
17191715
let arity = List.length l - 2 in
17201716
let name = Printf.sprintf "call_%d" arity in

0 commit comments

Comments
 (0)