We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68d353d commit 0dfa5d2Copy full SHA for 0dfa5d2
1 file changed
crates/js-component-bindgen/src/intrinsics/string.rs
@@ -115,7 +115,7 @@ impl StringIntrinsic {
115
let ptr = {realloc_call}(0, 0, 1, bytes.byteLength);
116
new Uint8Array(memory.buffer).set(bytes, ptr);
117
118
- const res = {{ ptr, len: buf.length, codepoints: [...s].length }};
+ const res = {{ ptr, len: bytes.length, codepoints: [...s].length }};
119
return res;
120
}}
121
"#
0 commit comments