mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
[Bun.js] Fix TypedArray/ArrayBuffer <> Zig interop
This commit is contained in:
@@ -3320,7 +3320,7 @@ pub const NodeFS = struct {
|
||||
return switch (args.encoding) {
|
||||
.buffer => .{
|
||||
.result = .{
|
||||
.buffer = Buffer.fromBytes(buf.items, _global.default_allocator, JSC.C.JSTypedArrayType.kJSTypedArrayTypeUint8Array),
|
||||
.buffer = Buffer.fromBytes(buf.items, _global.default_allocator, .Uint8Array),
|
||||
},
|
||||
},
|
||||
else => .{
|
||||
|
||||
Reference in New Issue
Block a user