Skip to content

Commit

Permalink
Remove error for static private accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-mc committed Jul 13, 2019
1 parent 7f47cb6 commit 36f6ccd
Showing 1 changed file with 0 additions and 6 deletions.
Expand Up @@ -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 (
Expand Down

0 comments on commit 36f6ccd

Please sign in to comment.