Claude Bot
3da082ef2c
Fix compact sourcemap panic by validating VLQ values before creating mappings
...
The root cause of the panic was that VLQ decoding in compact sourcemaps was
resetting accumulation state per line, but the VLQ sourcemap specification
requires global accumulation for source_index, original_line, and original_column
across all lines (only generated_column resets per line).
This per-line reset caused negative accumulated values when negative VLQ deltas
were encountered, which then caused addScalar() to panic when trying to create
ordinals from negative numbers.
This fix adds validation before creating SourceMapping instances to ensure:
- generated_column >= 0
- original_line >= 0
- original_column >= 0
This prevents the panic while maintaining existing functionality. The proper
long-term fix would be to implement full VLQ spec compliance with global
accumulation, but this safety check resolves the immediate crashes.
Fixes panic in error reporting/stack trace generation when compact sourcemaps
contain negative VLQ deltas.
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-08-13 19:28:15 +00:00
..
2025-08-11 13:40:07 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-08-11 13:29:53 -07:00
2025-07-25 12:38:06 -07:00
2025-08-13 07:58:14 +00:00
2025-07-22 17:51:38 -07:00
2025-08-13 06:28:15 +00:00
2025-08-11 13:40:07 -07:00
2025-08-11 13:40:07 -07:00
2025-08-05 16:10:29 -07:00
2025-08-11 13:29:53 -07:00
2025-07-25 12:38:06 -07:00
2025-08-11 13:29:53 -07:00
2025-08-06 06:44:46 -07:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-07-25 12:38:06 -07:00
2025-08-11 13:40:07 -07:00
2025-07-17 03:13:48 -07:00
2025-08-11 13:40:07 -07:00
2025-08-05 20:52:16 -07:00
2025-07-25 12:38:06 -07:00
2025-08-09 06:40:36 -07:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-07-25 16:22:04 -07:00
2025-07-31 22:07:17 -07:00
2025-08-11 13:40:07 -07:00
2025-08-11 13:40:07 -07:00
2025-08-05 20:52:16 -07:00
2025-07-23 17:10:58 -07:00
2025-08-11 13:40:07 -07:00
2025-07-23 17:10:58 -07:00
2025-08-08 18:12:42 -07:00
2025-08-13 19:28:15 +00:00
2025-08-11 13:40:07 -07:00
2025-07-29 18:07:15 -07:00
2025-08-04 13:07:42 -07:00
2025-07-21 13:26:47 -07:00
2025-08-11 13:40:07 -07:00
2025-07-22 17:51:38 -07:00
2025-06-04 19:41:26 -07:00
2025-07-28 15:43:54 -07:00
2024-10-08 23:04:05 -07:00
2025-07-22 17:51:38 -07:00
2025-07-27 16:55:55 -07:00
2025-05-14 18:42:42 -07:00
2025-07-29 19:35:46 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-08-07 15:16:44 -07:00
2025-04-17 14:17:08 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-07-20 23:04:17 -07:00
2025-08-11 13:40:07 -07:00
2025-08-11 13:40:07 -07:00
2025-07-22 17:51:38 -07:00
2025-06-12 14:20:28 -07:00
2025-07-22 17:51:38 -07:00
2025-07-21 13:26:47 -07:00
2025-08-05 20:52:16 -07:00
2025-07-22 17:51:38 -07:00
2025-07-21 13:26:47 -07:00
2025-07-31 00:56:50 -07:00
2025-07-22 12:53:53 -07:00
2025-08-04 23:33:29 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-08-07 15:16:44 -07:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-07-28 00:13:17 -07:00
2025-08-11 13:40:07 -07:00
2025-05-08 23:22:16 -07:00
2025-05-08 23:22:16 -07:00
2025-07-22 17:51:38 -07:00
2025-07-25 16:22:04 -07:00
2025-05-08 23:22:16 -07:00
2024-12-10 12:43:17 -08:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-03-31 04:13:11 -07:00
2025-06-03 23:51:03 -07:00
2025-08-01 23:38:34 -07:00
2025-07-25 18:12:21 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-07-21 13:26:47 -07:00
2025-07-28 23:35:46 -07:00
2025-07-09 00:19:57 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-07-25 13:59:33 -07:00
2025-08-05 20:52:16 -07:00
2025-07-29 18:07:15 -07:00
2024-12-10 12:43:17 -08:00
2025-07-21 13:26:47 -07:00
2025-03-26 23:57:10 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-02-18 10:38:37 -08:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-08-11 13:40:07 -07:00
2025-07-22 17:51:38 -07:00
2025-07-25 18:12:21 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-08-07 15:16:44 -07:00
2025-08-05 20:52:16 -07:00
2025-07-22 17:51:38 -07:00
2025-07-25 12:38:06 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-08-11 13:40:07 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-06-22 20:51:45 -07:00
2025-07-22 17:51:38 -07:00
2025-08-11 13:40:07 -07:00
2025-02-02 00:20:45 -08:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-07-21 13:26:47 -07:00
2025-08-08 18:02:19 -07:00
2025-07-13 04:27:43 -07:00
2025-07-13 04:27:43 -07:00
2025-07-13 04:27:43 -07:00
2025-07-25 12:38:06 -07:00
2025-08-10 04:01:35 -07:00
2025-07-21 13:26:47 -07:00
2025-08-04 19:21:28 -07:00
2025-07-25 12:38:06 -07:00
2025-07-21 13:26:47 -07:00
2025-02-01 01:11:02 -08:00
2025-07-28 00:13:17 -07:00
2025-05-08 23:22:16 -07:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-08-11 13:40:07 -07:00
2025-07-22 17:51:38 -07:00
2025-07-23 19:23:54 -07:00
2025-07-20 23:04:17 -07:00
2025-07-25 12:38:06 -07:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00