Files
bun.sh/test-sourcemap-lines.ts
Claude Bot 5133cce905 Fix array bounds access panic in ErrorReportRequest
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>
2025-08-13 07:58:14 +00:00

2 lines
42 B
TypeScript

type T = {}
console.log(new Error().stack)