mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
[Bun.js] Fix TypedArray/ArrayBuffer <> Zig interop
This commit is contained in:
@@ -431,7 +431,7 @@ pub const Bun = struct {
|
||||
marked_array_buffer.* = MarkedArrayBuffer.fromBytes(
|
||||
contents_buf[0..contents_len],
|
||||
VirtualMachine.vm.allocator,
|
||||
js.JSTypedArrayType.kJSTypedArrayTypeUint8Array,
|
||||
.Uint8Array,
|
||||
);
|
||||
|
||||
return marked_array_buffer.toJSObjectRef(ctx, exception);
|
||||
|
||||
Reference in New Issue
Block a user