-
Notifications
You must be signed in to change notification settings - Fork 5
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
Follow behavior on destructuring for edge cases #5
Comments
I don't agree with |
It will work like destructuring because initially |
The semantics of |
So is it necessary to describe these 4 situations in the draft, which should be consistent with destructuring? Or just remove them at all? |
There is a bunch of open questions like how to treat prototype properties, non-enumerable properties, __proto__, getters/setters etc.
It seems that following already existing rules for destructuring wherever possible should decrease the complexity of the proposal, provide intuitive UX, feet most of the use cases, and reduce the discussions. Consider open questions from the FAQ:
Item "1. When it comes to the prototype chain ..." can be removed because
Item "2. What is the type of the returned value?" can be removed because
Item "3. How to handle Symbol?" can be removed because
Item "4. If some properties of an object are not accessible like throwing an error..." can be removed because
The text was updated successfully, but these errors were encountered: