Disallow decorators on abstract/declare fields (#19210)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-05-27 02:28:30 +08:00
1 parent e3d23c2cef
commit 5d7f64ef5b
5 files changed
-45

No files matched your search

-3
View File
@@ -223,9 +223,6 @@ const allowedReasonCodesArray = [
```
*/
"DeclarationMissingInitializer",
// https://github.com/babel/babel/pull/17949
"DecoratorAbstractMethod",
];
const allowedReasonCodes = new Set(allowedReasonCodesArray);