From e45edc8235fe49261329d552283edee8a6b73d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Vouillon?= Date: Thu, 17 Jul 2025 00:24:25 +0200 Subject: [PATCH] Wasm/runtime: put back caml_string_of_array Brr is using this function. This is an alias for caml_string_of_uint8_array. --- CHANGES.md | 3 +++ runtime/wasm/bigarray.wat | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 3490684715..75ea6e185d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,9 @@ ## Features/Changes * Compiler: exit-loop-early in more cases (#2077) +## Bug fixes +* Runtime/wasm: add back legacy function caml_string_of_array (#2081) + # 6.1.1 (2025-07-07) - Lille ## Bug fixes diff --git a/runtime/wasm/bigarray.wat b/runtime/wasm/bigarray.wat index 59cc22cd7f..bb84d87845 100644 --- a/runtime/wasm/bigarray.wat +++ b/runtime/wasm/bigarray.wat @@ -2037,6 +2037,7 @@ (ref.i31 (i32.const 0))) (export "caml_bytes_of_uint8_array" (func $caml_string_of_uint8_array)) + (export "caml_string_of_array" (func $caml_string_of_uint8_array)) ;; Used by brr (func $caml_string_of_uint8_array (export "caml_string_of_uint8_array") (param (ref eq)) (result (ref eq)) ;; used to convert a typed array to a string