Consider that the body of ClassBody might be of type StaticBlock#5558
Consider that the body of ClassBody might be of type StaticBlock#5558lukastaegert merged 2 commits intomasterfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thank you for your contribution! ❤️You can try out this pull request locally by installing Rollup via npm install rollup/rollup#chore/class-body-typeNotice: Ensure you have installed the latest stable Rust toolchain. If you haven't installed it yet, please see https://www.rust-lang.org/tools/install to learn how to download Rustup and install Rust. or load it into the REPL: |
Performance report!Rough benchmark
Internal benchmark
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5558 +/- ##
=======================================
Coverage 99.04% 99.04%
=======================================
Files 238 238
Lines 9248 9252 +4
Branches 2437 2439 +2
=======================================
+ Hits 9160 9164 +4
Misses 58 58
Partials 30 30 ☔ View full report in Codecov by Sentry. |
lukastaegert
left a comment
There was a problem hiding this comment.
Definitely a good fix, thanks. One question, though.
|
This PR has been released as part of rollup@4.18.1. You can test it via |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
Description
I am working on implementing decorator support. During this process, I found that
ClassBodydid not consider thatbodymight be of typeStaticBlock. This PR fixes this issue.The estree link:https://github.com/estree/estree/blob/master/es2022.md#classbody