Implement iterator includes proposal
Categories
(Core :: JavaScript: Standard Library, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox152 | --- | fixed |
People
(Reporter: dminor, Assigned: dminor)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-needed)
Attachments
(4 files)
This should be fairly easily implementable, this seems to be equivalent to using Iterator.prototype.some, e.g. .some(e => e === searchElement), except for the skipped elements part, which could be done using Iterator.prototype.take.
Bug 2003345 has an example of how to add an empty placeholder method to iterator. I suspect the implementation can be done using IteratorSome and IteratorTake in Iterator.js as examples, most likely by calling them directly.
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•27 days ago
|
||
| Assignee | ||
Comment 2•27 days ago
|
||
| Assignee | ||
Comment 3•27 days ago
|
||
| Assignee | ||
Comment 4•27 days ago
|
||
These are from https://github.com/tc39/test262/pull/5031 which is
currently under review. Once the tests land upstream, these can be
removed. This will be handled as part of shipping the feature when
it reaches Stage 3.
Comment 6•23 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c7e5a9607447
https://hg.mozilla.org/mozilla-central/rev/81c4ad74dc82
https://hg.mozilla.org/mozilla-central/rev/6d64532cce7f
https://hg.mozilla.org/mozilla-central/rev/3b83144474b1
Description
•