Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upRule about __proto__ #547
Comments
This comment has been minimized.
This comment has been minimized.
dougwilson
commented
Jun 8, 2016
|
I wouldn't consider anything in Annex B as being "standard", more of a "we really hate to add this stuff, but we're forced to.. but don't use it". See the opening paragraphs of the annex:
|
This comment has been minimized.
This comment has been minimized.
dougwilson
commented
Jun 8, 2016
|
And Annex B continues to say this:
|
This comment has been minimized.
This comment has been minimized.
|
Agree, we should not use it. It's pity... like getter/setter is somehow worser then methods |
Alexsey
closed this
Jun 8, 2016
This comment has been minimized.
This comment has been minimized.
getters and setters has nothing do with const obj = {
get test () {
return 'Hello'
}
}
console.log(obj.test) // Hello |
This comment has been minimized.
This comment has been minimized.
|
I mean that |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
The thing is definitely not in standardization. Because now it is standardized but any way in deprecation zone. I agree that the name is not good. But there is no other reasons I can see |
This comment has been minimized.
This comment has been minimized.
|
I usually don't need to use See the compatibility table on this page and you can see that we hopefully shouldn't need to use |
This comment has been minimized.
This comment has been minimized.
|
I have start to move this discussion from |
Alexsey commentedJun 8, 2016
•
edited
For now
Standardhas a rule that prohibit__proto__usage as deprecated. I agree that it could be considered as deprecated in the past, but now, when__proto__is a part of a ES2016 standatd I don't see any reasons why it should be