Skip to content

Commit fea21c0

Browse files
committed
feat: Fix deprecated ocaml binding
1 parent 60b313d commit fea21c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ function caml_binaryen_module_get_debug_info_filename(wasm_mod, index) {
122122
}
123123

124124
//Provides: caml_binaryen_add_custom_section
125-
//Requires: caml_jsstring_of_string, caml_array_of_string
125+
//Requires: caml_jsstring_of_string, caml_uint8_array_of_string
126126
function caml_binaryen_add_custom_section(wasm_mod, name, contents) {
127127
return wasm_mod.addCustomSection(
128128
caml_jsstring_of_string(name),
129-
caml_array_of_string(contents)
129+
caml_uint8_array_of_string(contents)
130130
);
131131
}
132132

0 commit comments

Comments
 (0)