Intent to prototype and ship: Iterator Chunking

33 views
Skip to first unread message

Daniel Minor

unread,
Jun 16, 2026, 12:59:35 PM (18 hours ago) Jun 16
to dev-pl...@mozilla.org

As of Firefox 154, I intend to turn Iterator chunking on by default. It has been developed behind the javascript.options.experimental.iterator_chunking preference. Our implementation was contributed by a volunteer, meg387, thanks Meg!

Summary:

This adds a new Iterator.prototype.chunks and Iterator.prototype.windows methods that allows consume an iterator as either overlapping or non-overlapping subsequences of configurable size.

Bug to turn on by default:
https://bugzilla.mozilla.org/show_bug.cgi?id=2047997

Specification:
https://tc39.es/proposal-iterator-chunking/

Standards Body:
TC39

Platform Coverage:
All

Preference:

javascript.options.experimental.iterator_chunking

DevTools Bug:
N/A

Extensions Bug:
N/A

Use Counter:
N/A

Standards-Positions Discussion:
N/A

Other Browsers:

web-platform-tests:
Covered by Test262, the tests haven't been merged yet (https://github.com/tc39/test262/pull/5011), I'll make sure that we have a local copy of the PR that our implementation passes as a part of shipping.

Reply all
Reply to author
Forward
0 new messages