This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
🐛 Crash at @ character in class name / body #4669
Labels
S-To triage
Status: user report of a possible bug that needs to be triaged
Environment information
What happened?
The following cases crash with the
thread '<unnamed>' panicked at 'assertion failed: modifiers.is_empty()', /rome/tools/crates/rome_js_parser/src/syntax/class.rs:567:13
:class @
class C@
I suspect there are actually two bugs here:
Affected formatters:
rome_format_d_ts
rome_format_jsx
rome_format_module
rome_format_script
rome_format_tsx
rome_format_typescript
Expected result
Formatters should not crash.
Code of Conduct
The text was updated successfully, but these errors were encountered: