Tags: BYK/bun
Tags
Revert "webcore: fix ReadableStreamSource Strong cycle + Windows from… …Pipe ref (oven-sh#29472)" This reverts commit 55b62ef.
wip builds (oven-sh#28826) ### What does this PR do? ### How did you verify your code works? --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
deflake hot.test.ts: fix duplicate error handling and buffer manageme… …nt (oven-sh#28202) The three sourcemap tests (generation, loading, loading with large files) used a `continue outer` pattern in their error-handling loops. When a duplicate/stale error was encountered, `continue outer` jumped back to reading the next stderr chunk, but any remaining lines from `str.split("\n")` that had not yet been processed were discarded because `str` was set to `""` inside the inner loop. This lost data and could cause the test to hang waiting for output that was already consumed and thrown away. Additionally, the bundler processes in the sourcemap loading tests used `stdout: "inherit"` / `stderr: "inherit"`, which could cause pipe buffer backpressure blocking the bundler. Fixes both issues with a shared `driveErrorReloadCycle` helper that: - Preserves unprocessed lines when encountering duplicate errors (uses `lines.pop()` for trailing partial lines and re-buffers remaining lines via `lines.slice(i + 1)`) - Pipes bundler stdout/stderr to `ignore` to avoid pipe buffer backpressure - Races `bundler.exited` against the reload driver for early-exit detection in the two bundler-based tests --- Verification: Format and Lint JavaScript CI checks pass. Buildkite build #39875 still compiling at time of review. Only `test/cli/hot/hot.test.ts` changed (test-only deflake, no production code). Jarred's CHANGES_REQUESTED about the nonce mechanism was addressed in commit 50f3f4e (nonce removed). No TODO/FIXME/HACK in added lines. The driveErrorReloadCycle helper correctly preserves partial line fragments and remaining unprocessed lines, prevents double onReload calls via the triggered flag, and uses Buffer.alloc per test/CLAUDE.md convention. --------- Co-authored-by: Alistair Smith <hi@alistair.sh>
Revert "Mimalloc v3 update (oven-sh#26379)" (oven-sh#26783) This reverts commit c63415c. ### What does this PR do? ### How did you verify your code works?
Update WebKit (oven-sh#26549) ### What does this PR do? Includes oven-sh/WebKit@9a2cc42 Fixes #oven-sh#26525 ### How did you verify your code works? CI --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
fix(shell): handle ".", "", "./" in cwd() by using process.cwd() (ove… …n-sh#26461) ## Summary - Fix `$`...`.cwd(".")` causing ENOENT error with path ending in "undefined" - The same fix applies to `.cwd("")` and `.cwd("./")` - Falls back to `process.cwd()` when `defaultCwd` is undefined Closes oven-sh#26460 ## Test plan - [x] Added regression test in `test/regression/issue/26460.test.ts` - [x] Verified test fails with `USE_SYSTEM_BUN=1` (reproduces the bug) - [x] Verified test passes with `bun bd test` (fix works) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
fix(css): restore handler context after minifying nested rules (oven-… …sh#25997) ## Summary - Fixes handler context not being restored after minifying nested CSS rules - Adds regression test for the issue ## Test plan - [x] Test fails with `USE_SYSTEM_BUN=1 bun test test/regression/issue/25794.test.ts` - [x] Test passes with `bun bd test test/regression/issue/25794.test.ts` Fixes oven-sh#25794 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
fix: v8::Value::IsInt32()/IsUint32() edge cases (oven-sh#25548) ### What does this PR do? - fixes both functions returning false for double-encoded values (even if the numeric value is a valid int32/uint32) - fixes IsUint32() returning false for values that don't fit in int32 - fixes the test from oven-sh#22462 not testing anything (the native functions were being passed a callback to run garbage collection as the first argument, so it was only ever testing what the type check APIs returned for that function) - extends the test to cover the first edge case above ### How did you verify your code works? The new tests fail without these fixes. --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
fix(compile): use 8-byte header for embedded section to ensure byteco… …de alignment (oven-sh#25377) ## Summary - Change the size header in embedded Mach-O and PE sections from `u32` (4 bytes) to `u64` (8 bytes) - Ensures the data payload starts at an 8-byte aligned offset, which is required for the bytecode cache ## Test plan - [x] Test standalone compilation on macOS - [ ] Test standalone compilation on Windows 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
PreviousNext