Map and Set iterator methods should iterate only over own properties
@medikoo is already working on this.
Since May 2, 2016.
- Dominant language
- JavaScript
- Stars
- 27
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
Currently implemented idea is that forEach, some etc. iterate also over properties that come from prototypes (e.g. to also provide getter values). Still it proved to be very problematic for implementation internals and it's also not on par with how language iterators work, therefore confusing.
The case of nested and multiple should work same. So if object has non of them resolved to the moment, it should be saturated with those before iteration. For that we may provide also saturate method that's invoked upfront, or even better, a method that will return list of all keys that should be iterated (then iterated keys will be resolved on the go, it's more optimal approach when some or every is concerned)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.