oxc/crates
Dunqing 8ed976661a
fix(codegen): source map builder panicked because it attempted to subtract 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.

46fc1a8b7d/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`
2024-12-31 20:00:41 +08:00
..
oxc release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_allocator feat(minifier): improve StatementFusion (#8194) 2024-12-31 01:13:24 +00:00
oxc_ast feat(minifier): minimize if (x) if (y) z -> if (x && y) z (#8136) 2024-12-27 02:44:47 +00:00
oxc_ast_macros release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_cfg release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_codegen fix(codegen): source map builder panicked because it attempted to subtract with overflow in search_original_line_and_column (#8185) 2024-12-31 20:00:41 +08:00
oxc_data_structures release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_diagnostics release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_ecmascript fix(minifier): do not constant fold 0 instanceof F (#8199) 2024-12-31 08:46:57 +00:00
oxc_estree release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_isolated_declarations release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_language_server refactor(language_server)!: use .oxlintrc.json when no config path provided (#8027) 2024-12-20 10:30:03 +08:00
oxc_linter feat(linter): add statement_span to ModuleRecord/ImportEntry (#8195) 2024-12-31 08:47:26 +08:00
oxc_macros feat(linter)!: remove unmaintained security plugin (#7773) 2024-12-10 14:29:22 +00:00
oxc_mangler release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_minifier fix(minifier): do not constant fold 0 instanceof F (#8199) 2024-12-31 08:46:57 +00:00
oxc_napi release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_parser fix(parser): allow line breaks between const and enum (#8193) 2024-12-31 08:45:17 +08:00
oxc_prettier feat(prettier): Print directive (#8066) 2024-12-23 14:46:47 +08:00
oxc_regular_expression release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_semantic feat(semantic): allow getting mutable reference to symbols table (#8189) 2024-12-30 15:27:30 +08:00
oxc_span release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_syntax feat(minfier): add CompressOptions::target (#8179) 2024-12-29 12:27:32 +00:00
oxc_transformer fix(transformer): ensure last expression statement in arrow function expression is wrapped in return (#8192) 2024-12-31 01:29:53 +00:00
oxc_traverse release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_wasm feat(minfier): add CompressOptions::target (#8179) 2024-12-29 12:27:32 +00:00