Context
The pinned Bun Bake corpus at 4982b91e3702094330f3be3883354c52b8c01323 includes an error-report hardening regression in test/bake/dev/html.test.ts. A browser can submit absolute stack-frame paths larger than the platform path buffer to POST /_bun/report_error.
Home reproduced the pre-fix failure: DevServer.relativePath attempted to normalize a 16 KiB path into bun.PathBuffer, panicked at index 1024 on macOS, reset the request, and terminated the development server.
Scope
- Port Bun's
DevServer.relativePathsize boundary without weakening the upstream payload or assertion. - Preserve ordinary project-relative stack-frame rewriting.
- Return a successful error-report response and keep serving requests after an oversized absolute frame.
- Cover the behavior in Home's maintained Bake development gate and the unchanged pinned Bun test.
Acceptance criteria
- The unchanged pinned
error report endpoint handles stack frames with very long absolute pathstest passes through Home's native VM. - The complete pinned
bake/dev/html.test.tsfile passes. zig build test-bake-development -Denable_jsc=true -j1exercises the oversized report and remains green.- Runtime and JSC build gates remain green.