mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Fixed potential panic in ErrorReportRequest.zig where generated_mappings[1] was accessed without proper bounds checking. The condition checked if len <= 1 OR accessed index 1, which could panic when len = 0. Changed to: len <= 1 OR (len > 1 AND condition with index 1) This prevents panic when compact sourcemaps return empty generated() arrays. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2 lines
42 B
TypeScript
2 lines
42 B
TypeScript
type T = {}
|
|
console.log(new Error().stack) |