Closed maxim-grishaev closed 9 years ago
Hmm, why does this method even exist? getPropertyDescriptor isn't part of ES6.
@domenic well, it was. At the moment I cannot find if it was decided to remove this from specs...
It was never in any spec drafts at all.
That is not a spec draft. It's a wiki page where committee members write down random ideas they have...
Ok, this was proposal. Quite obvious one. And I really dont know why there is no any analog in spec. So maybe the best option is to remove this method from shim completely.
I like the simplification, but if it's not in the spec, we definitely need to remove it.
What about Object.getPropertyNames
which is in the same vein?
Also never in the spec.
There is "getOwnPropertyDescriptors" which is currently a stage 0 strawman (with a possibility of making it on the ES7 train).
@KidsKilla Either this PR should be closed, or it should be updated to remove both of these methods, their tests, and their mentions in the README. Thanks!
I've removed both - thanks for the PR, @KidsKilla, and thanks for catching that this isn't in the spec, @domenic!
Do not try to get prototype if we already have descriptor.