-
Notifications
You must be signed in to change notification settings - Fork 460
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
test: Add test for private method in object literal #1760
test: Add test for private method in object literal #1760
Conversation
@rwaldron @leobalter for review not really sure if that's the right place to even put these tests. thoughts? |
These need to be moved:
|
@rwaldron for review |
I want to think more about this changeset. I have two concerns:
Let's think about this a bit more. |
@rwaldron I don't mind scrapping this PR. If we decide we don't want to cover these, do you mind updating the test plan linked to the PR? |
We previously considered such "private name shorthand", e.g., in https://github.com/littledan/proposal-private-shorthand , and decided to break it out into a separate, follow-on proposal. I think it's worth it to have a test that it is not supported, given that history. (Related: #1782 (comment)) |
similar to #1782. closing |
Note, the lack of these tests led to a delay in discovering a real issue in the V8 implementation of private fields and methods: https://chromium-review.googlesource.com/c/v8/v8/+/1461161 . I'd ask you to reconsider whether such tests are OK. Note that the recently committed |
Tracking Issue: #1343
Summary of changes: