mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 12:29:07 +00:00
Fix some shell regressions (#9630)
* Fix undefined memory on subprocess exit immediately and fix crash when writing a lot of data * format * Test for #9458 * Document * Lazily create iowriters (i think this solves fdleak tests?) * Fix `big_data` test hanging * I think this make leak tests more stable * accidentally had deinit in another thread * oops * Fixes --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
@@ -150,6 +150,11 @@ pub fn Result(comptime T: anytype) type {
|
||||
pub const success: @This() = @This(){
|
||||
.result = std.mem.zeroes(T),
|
||||
};
|
||||
|
||||
pub fn asErr(this: @This()) ?ShellErr {
|
||||
if (this == .err) return this.err;
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user