YeonGyu-Kim
9dd0e14733
fix(bun-spawn-shim): match Bun.spawn semantics in Node fallback
...
Address cubic and oracle review feedback to make the Node/Electron
fallback faithful to Bun.spawn behavior so cross-runtime callers
behave identically.
Changes:
- resolveStdio() default stdio is now ["ignore", "pipe", "inherit"]
to match Bun.spawn defaults (was ["pipe", "pipe", "pipe"]).
Prevents hangs in dispatcher and on-complete-hook callers that
did not explicitly set stdin and would otherwise wait forever
for input on Node.
- spawn-with-windows-hide.ts uses the same defaults so the Windows
Node helper aligns with the rest of the shim.
- wrapNodeProcess now rejects proc.exited with the original error
on "error" events (previously swallowed the error and resolved
to exit code 1, hiding ENOENT and friends).
- spawnSync result returns the real result.pid instead of -1 and
exposes stdout/stderr as Buffer | undefined to match Node's
spawnSync result shape when those streams are not piped.
Tests cover the new defaults, real pid surfacing, and missing
executable error propagation.
Refs cubic review and oracle audit on #3798 .
2026-05-06 13:28:21 +09:00
..
2026-02-21 16:45:18 -07:00
2026-03-03 00:27:53 +09:00
2026-04-25 00:41:32 +09:00
2026-04-24 16:17:37 +09:00
2026-05-05 22:41:45 +09:00
2026-04-04 21:32:52 +09:00
2026-05-05 22:41:45 +09:00
2026-04-17 14:51:52 +09:00
2026-04-27 18:59:49 +09:00
2026-04-27 18:59:49 +09:00
2026-04-27 18:55:33 +09:00
2026-04-27 18:55:33 +09:00
2026-05-01 19:27:25 +09:00
2026-04-26 13:20:46 -06:00
2026-04-15 10:46:41 +09:00
2026-04-18 01:21:20 +09:00
2026-04-04 01:16:21 +09:00
2026-04-04 01:16:37 +09:00
2026-03-29 04:53:43 +09:00
2026-05-05 22:41:45 +09:00
2026-05-06 13:28:21 +09:00
2026-05-06 13:28:21 +09:00
2025-12-26 23:28:33 +09:00
2025-12-26 23:28:33 +09:00
2026-02-08 15:01:42 +09:00
2026-03-08 02:23:11 +09:00
2026-04-10 15:53:09 +09:00
2025-12-19 02:20:46 +09:00
2026-04-17 15:35:11 +09:00
2026-04-13 23:40:51 -07:00
2026-04-03 17:14:40 +09:00
2026-04-17 14:51:52 +09:00
2026-04-17 14:51:52 +09:00
2026-04-10 11:16:16 +09:00
2026-02-01 16:47:50 +09:00
2025-12-13 14:23:04 +09:00
2026-02-06 18:58:48 +09:00
2026-05-05 22:59:43 +09:00
2026-04-28 17:59:25 +09:00
2026-04-28 17:59:25 +09:00
2026-04-18 14:04:45 +09:00
2026-04-18 14:04:45 +09:00
2026-04-04 16:44:40 +09:00
2026-04-10 11:16:16 +09:00
2026-03-25 11:04:49 +01:00
2026-03-25 11:14:04 +01:00
2026-03-02 16:38:22 +09:00
2026-04-27 17:45:27 +09:00
2026-04-27 17:45:27 +09:00
2026-02-12 12:12:40 +01:00
2026-02-14 22:06:13 +09:00
2026-02-01 16:47:50 +09:00
2026-01-13 04:37:51 +00:00
2026-02-01 16:47:50 +09:00
2026-01-05 05:38:17 +09:00
2025-12-09 17:31:15 +09:00
2026-04-18 14:04:45 +09:00
2026-04-08 15:58:02 +09:00
2026-04-08 15:58:02 +09:00
2026-04-03 18:51:10 +09:00
2026-04-13 23:40:51 -07:00
2026-04-18 14:12:50 +09:00
2026-04-18 14:12:50 +09:00
2026-04-18 14:12:55 +09:00
2026-03-25 11:04:49 +01:00
2026-04-04 19:42:18 +09:00
2026-03-31 17:25:00 -07:00
2026-04-18 14:09:46 +09:00
2026-04-18 14:10:45 +09:00
2026-04-18 02:52:10 +09:00
2026-04-18 02:52:10 +09:00
2026-04-10 11:16:16 +09:00
2026-04-17 14:51:52 +09:00
2026-02-11 13:52:20 +09:00
2026-04-25 00:41:32 +09:00
2026-04-25 00:41:32 +09:00
2026-04-04 02:10:27 +09:00
2026-04-24 16:17:44 +09:00
2026-02-07 19:51:22 +09:00
2026-04-17 14:51:52 +09:00
2026-04-17 14:51:52 +09:00
2026-04-02 15:45:39 +09:00
2026-03-25 15:09:25 +01:00
2026-04-03 19:36:56 +09:00
2026-04-27 17:15:56 +09:00
2026-04-27 15:31:48 +09:00
2026-04-27 15:31:48 +09:00
2026-04-26 13:20:46 -06:00
2026-03-25 22:11:45 +01:00
2026-04-27 17:15:56 +09:00
2026-05-01 01:25:01 +09:00
2026-05-01 01:25:01 +09:00
2026-04-17 14:51:52 +09:00
2026-02-23 17:42:53 +01:00
2026-03-02 16:38:22 +09:00
2026-03-02 16:38:22 +09:00
2026-04-25 00:41:32 +09:00
2026-04-25 00:41:32 +09:00
2026-04-09 14:19:17 +09:00
2026-03-03 00:38:20 +09:00
2026-03-25 11:14:04 +01:00
2026-04-17 14:51:52 +09:00
2026-04-03 19:39:55 +09:00
2025-12-14 12:24:59 +09:00
2026-04-27 17:15:56 +09:00
2026-04-12 02:28:36 +09:00
2026-04-18 03:01:51 +09:00
2026-03-07 05:46:05 +09:00
2026-04-03 19:39:55 +09:00
2026-02-16 18:20:19 +09:00
2026-04-12 00:07:10 +09:00
2026-03-26 13:02:12 +09:00
2026-03-26 13:02:12 +09:00
2026-02-08 13:57:26 +09:00
2026-04-05 14:27:24 +09:00
2026-04-05 14:27:24 +09:00
2026-02-16 16:13:40 +09:00
2026-02-16 16:52:23 +09:00
2026-04-05 09:30:19 +09:00
2026-04-05 09:30:19 +09:00
2026-04-16 14:28:56 +09:00
2026-04-16 14:28:56 +09:00
2026-04-10 15:53:37 +09:00
2026-04-18 17:49:05 +03:00
2026-04-03 19:39:55 +09:00
2026-02-16 16:52:25 +09:00
2026-02-16 16:13:40 +09:00
2026-02-01 16:47:50 +09:00
2026-02-16 16:13:40 +09:00
2026-04-15 10:58:16 +09:00
2026-02-06 16:33:34 +09:00
2026-03-18 14:19:00 +09:00
2026-02-06 21:35:30 +09:00
2026-04-17 16:42:43 +09:00
2026-03-03 00:14:01 +09:00
2026-03-03 00:14:01 +09:00
2026-04-04 02:10:27 +09:00
2026-03-26 18:04:31 +09:00
2026-04-10 11:15:42 +09:00
2026-03-18 13:17:01 +09:00
2026-02-05 09:55:15 +09:00
2026-05-02 00:10:59 +09:00
2026-05-02 00:10:59 +09:00
2026-05-02 00:11:01 +09:00
2026-05-02 00:11:01 +09:00
2026-04-18 14:11:24 +09:00
2026-04-18 14:11:24 +09:00
2026-02-26 20:59:53 +09:00
2026-02-18 21:10:21 +09:00
2026-02-18 21:10:21 +09:00
2026-04-17 14:51:52 +09:00
2026-03-11 19:42:46 +09:00
2026-02-08 16:24:52 +09:00
2026-04-15 10:58:16 +09:00
2026-04-15 10:57:54 +09:00
2026-03-09 12:43:30 +09:00
2026-04-18 03:01:51 +09:00
2026-04-10 15:53:37 +09:00
2026-02-07 13:32:45 +09:00
2026-04-04 02:02:12 +09:00
2026-02-01 16:47:50 +09:00
2026-03-29 04:53:43 +09:00
2026-02-17 01:45:14 +09:00
2026-02-17 01:45:14 +09:00
2026-01-31 15:46:14 +09:00
2026-02-21 03:03:57 +09:00
2026-02-20 17:45:53 +02:00
2026-04-08 17:14:17 +09:00
2026-04-08 17:14:17 +09:00
2026-04-08 13:02:51 +09:00
2026-02-14 14:58:25 +09:00
2026-02-21 16:44:59 -07:00
2026-02-16 20:43:09 +09:00
2026-04-15 10:43:44 +09:00
2026-04-15 10:43:44 +09:00
2026-04-12 02:28:46 +09:00
2026-04-12 02:28:46 +09:00
2026-01-31 15:46:14 +09:00
2026-05-06 13:28:21 +09:00
2026-04-08 15:58:02 +09:00
2026-04-08 15:58:02 +09:00
2026-04-03 18:31:26 +09:00
2026-02-07 13:12:47 +09:00
2026-02-07 13:12:47 +09:00
2026-02-07 19:13:35 +09:00
2026-02-07 19:13:35 +09:00
2026-03-08 02:20:25 +09:00
2026-04-12 02:28:05 +09:00
2026-04-12 02:28:05 +09:00
2026-04-03 18:34:12 +09:00
2026-05-05 22:41:45 +09:00