Skip to content

Commit

Permalink
Runtime: keep caml_string_of_array For_compatibility_only
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Jan 16, 2025
1 parent 396982d commit d170d27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/runtime/js_of_ocaml_runtime_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ void caml_read_file_content () {
caml_fatal_error("Unimplemented Javascript primitive caml_read_file_content!");
}

void caml_string_of_array () {
caml_fatal_error("Unimplemented Javascript primitive caml_string_of_array!");
}

void caml_string_of_jsbytes () {
caml_fatal_error("Unimplemented Javascript primitive caml_string_of_jsbytes!");
}
Expand Down
2 changes: 2 additions & 0 deletions lib/runtime/jsoo_runtime.ml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ module For_compatibility_only = struct
external caml_list_to_js_array : 'a list -> 'a Js.js_array = "caml_list_to_js_array"

external variable : string -> 'a = "caml_js_var"

external caml_string_of_array : 'a array -> string = "caml_string_of_array"
end

module Typed_array = struct
Expand Down

0 comments on commit d170d27

Please sign in to comment.