Skip to content

Commit

Permalink
Update subprocess.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Dec 25, 2024
1 parent 9458f01 commit dc0949a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/bun.js/api/bun/subprocess.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1742,10 +1742,13 @@ pub const Subprocess = struct {
comptime is_sync: bool,
) bun.JSError!JSValue {
if (comptime is_sync) {
// Since the event loop is recursively called, we need to check if it's safe to recurse.
if (!bun.StackCheck.init().isSafeToRecurse()) {
globalThis.throwStackOverflow();
return error.JSError;
// We skip this on Windows due to test failures.
if (comptime !Environment.isWindows) {
// Since the event loop is recursively called, we need to check if it's safe to recurse.
if (!bun.StackCheck.init().isSafeToRecurse()) {
globalThis.throwStackOverflow();
return error.JSError;
}
}
}

Expand Down

0 comments on commit dc0949a

Please sign in to comment.