Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(codegen): source map builder panicked because it attempted to sub…
…tract with overflow in `search_original_line_and_column` (#8185) See: https://github.com/oxc-project/monitor-oxc/actions/runs/12531534720/job/34949348092 Related: #7926 This line causes panic. https://github.com/oxc-project/oxc/blob/46fc1a8b7d26f1971d1809d68060cb0259dc4b53/crates/oxc_codegen/src/sourcemap_builder.rs#L147-L148 After investigation, I found that the root cause was the code removed in this PR. I don’t understand what the code was used for, but it was obviously wrong. Because `idx` is always smaller than `cap`
- Loading branch information