mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 13:51:47 +00:00
Update stdio.zig
This commit is contained in:
@@ -27,7 +27,7 @@ pub const Stdio = union(enum) {
|
||||
|
||||
pub fn byteSlice(this: *const Stdio) []const u8 {
|
||||
return switch (this.*) {
|
||||
.capture => this.capture.slice(),
|
||||
.capture => this.capture.buf.slice(),
|
||||
.array_buffer => this.array_buffer.array_buffer.byteSlice(),
|
||||
.blob => this.blob.slice(),
|
||||
else => &[_]u8{},
|
||||
|
||||
Reference in New Issue
Block a user