mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +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>
8 lines
130 B
TypeScript
8 lines
130 B
TypeScript
type T = {}
|
|
|
|
function throwError() {
|
|
throw new Error("Test error from line 4");
|
|
}
|
|
|
|
console.log("Starting test");
|
|
throwError(); |