From 6984355cfd9f72cba657a85bbfccb1be4ee62797 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Tue, 24 Feb 2026 01:43:04 -0800 Subject: [PATCH] fix(repl): don't skip piped tests on Windows, fix ban-words The piped stdin tests don't use Bun.Terminal and should work on Windows. Only the interactive terminal tests need todoIf(isWindows). Fix banned word: use .{0} ** 256 instead of = undefined for buffer. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/repl.zig | 2 +- test/js/bun/repl/repl.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repl.zig b/src/repl.zig index 75697f307d..f00a842759 100644 --- a/src/repl.zig +++ b/src/repl.zig @@ -682,7 +682,7 @@ terminal_height: u16 = 24, ctrl_c_pressed: bool = false, // Buffered stdin -stdin_buf: [256]u8 = undefined, +stdin_buf: [256]u8 = .{0} ** 256, stdin_buf_start: usize = 0, stdin_buf_end: usize = 0, diff --git a/test/js/bun/repl/repl.test.ts b/test/js/bun/repl/repl.test.ts index f9ae15829f..d798cd4416 100644 --- a/test/js/bun/repl/repl.test.ts +++ b/test/js/bun/repl/repl.test.ts @@ -134,7 +134,7 @@ async function withTerminalRepl( if (!proc.killed) proc.kill(); } -describe.todoIf(isWindows)("Bun REPL", () => { +describe("Bun REPL", () => { describe("basic evaluation", () => { test("evaluates simple expression", async () => { const { stdout, exitCode } = await runRepl(["1 + 1", ".exit"]);