Skip to content

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎js_tests/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn concat (s1: char_p::Ref<'_>, s2: char_p::Ref<'_>)
6363
}
6464

6565
#[ffi_export(node_js)]
66-
fn concat_bytes (
66+
fn concat_byte_slices (
6767
xs1: Option<c_slice::Ref<'_, u8>>,
6868
xs2: Option<c_slice::Ref<'_, u8>>,
6969
) -> Option<c_slice::Box<u8>>

‎js_tests/tests/tests.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export async function run_tests({ ffi, performance, assert, is_web }) {
122122
);
123123

124124
assert.deepEqual(
125-
Uint8Array.from(ffi.boxCBytesIntoBuffer(ffi.concat_bytes(
125+
Uint8Array.from(ffi.boxCBytesIntoBuffer(ffi.concat_byte_slices(
126126
Uint8Array.from('Hello, ', c => c.charCodeAt(0)),
127127
Uint8Array.from('World!', c => c.charCodeAt(0)),
128128
))),

0 commit comments

Comments
 (0)
Please sign in to comment.