Closed Bug 2025779 Opened 1 month ago Closed 23 days ago

Implement iterator includes proposal

Categories

(Core :: JavaScript: Standard Library, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
152 Branch
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.

Severity: -- → N/A
Priority: -- → P3
Assignee: nobody → dminor
Mentor: dminor
Status: NEW → ASSIGNED
Keywords: good-first-bug
Keywords: dev-doc-needed

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.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: