Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Enable classProperties and classPrivateProperties parsers. #379

Merged
merged 3 commits into from
Apr 24, 2019
Merged

feat: Enable classProperties and classPrivateProperties parsers. #379

merged 3 commits into from
Apr 24, 2019

Conversation

coreyfarrell
Copy link
Member

@coreyfarrell coreyfarrell commented Apr 23, 2019

No description provided.

@coreyfarrell coreyfarrell requested a review from bcoe April 23, 2019 23:41
@coreyfarrell
Copy link
Member Author

@bcoe I'd like to make sure this is in the next release now that node.js 12 is out and testing can be enabled.

/* Verify and add upon release of node.js 12:
* classProperties
* classPrivateProperties
* classPrivateMethods
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems classPrivateMethods are not supported in node.js v12.0.0. Will be keeping an eye on the v8 release blog and add plugins when appropriate.

}

export function isClassPrivatePropAvailable() {
return tryThis('class Foo { #a = 1; }', 'class private property');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh my goodness, I'm unreasonably excited about this feature.

Copy link
Member

@bcoe bcoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 this is awesome! private class properties are available now?

@coreyfarrell
Copy link
Member Author

👍 this is awesome! private class properties are available now?

Yes in Chrome 74 and Node.js 12. Private getters/setters get #foo() { return 'something'; } and private methods #foo() {} are not yet available, hopefully will be implemented in v8-7.5 so we get it during node.js 12 lifecycle.

@coreyfarrell coreyfarrell merged commit c09dc38 into istanbuljs:master Apr 24, 2019
@coreyfarrell coreyfarrell deleted the node12 branch April 24, 2019 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants