This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
🐛 Crash at escaped extended ascii character within regex expression #4689
Labels
S-To triage
Status: user report of a possible bug that needs to be triaged
Environment information
What happened?
An expression of the form:
forward slash + backward slash + extended ascii character
causes a crash withthread '<unnamed>' panicked at 'assertion failed: self.source.is_char_boundary(self.position)', /rome/tools/crates/rome_js_parser/src/lexer/mod.rs:545:9
Example failing cases (€ can be replaced with any extended ascii character):
Not failing:
Affected Formatters:
rome_format_d_ts
rome_format_jsx
rome_format_module
rome_format_script
rome_format_tsx
rome_format_typescript
Expected result
Should not crash.
Code of Conduct
The text was updated successfully, but these errors were encountered: