From 36f6ccdbc6b59f0f34586a761e6e9c75afb74e0f Mon Sep 17 00:00:00 2001 From: Timothy McClure Date: Sat, 25 May 2019 17:12:08 -0400 Subject: [PATCH] Remove error for static private accessors --- .../src/features.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/babel-helper-create-class-features-plugin/src/features.js b/packages/babel-helper-create-class-features-plugin/src/features.js index fffc0d0014e0..4fc528bff185 100644 --- a/packages/babel-helper-create-class-features-plugin/src/features.js +++ b/packages/babel-helper-create-class-features-plugin/src/features.js @@ -66,12 +66,6 @@ export function verifyUsedFeatures(path, file) { if (!hasFeature(file, FEATURES.privateMethods)) { throw path.buildCodeFrameError("Class private methods are not enabled."); } - - if (path.node.static && path.node.kind !== "method") { - throw path.buildCodeFrameError( - "@babel/plugin-class-features doesn't support class static private accessors yet.", - ); - } } if (