Skip to content

Commit feccabf

Browse files
committed
fix: Use caml_uint8_array_of_string in add_custom_section
While working on grain-lang#265 I noticed that I was getting errors on `caml_binaryen_add_custom_section` as `caml_array_of_string` was deprecated for `caml_uint8_array_of_string` this updates that. The reason this doesn't appear for us is because of our test suite never calls this function.
1 parent f39c456 commit feccabf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)