Closed Bug 2004803 Opened 7 months ago Closed 2 months ago

Add initial implementation for Iterator.prototype.join

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox152 --- fixed

People

(Reporter: dminor, Assigned: dminor)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Please add an initial implementation of https://tc39.es/proposal-iterator-join/, using the implementations in https://searchfox.org/firefox-main/source/js/src/builtin/Iterator.js as an example. Most of those methods are iterator helpers, but Iterator.find is an example of one that's not.

The Iterator.prototype.join method is meant to work like Array.prototype.join. That's been written in C++ and heavily optimized. We'll probably end up doing some optimizations on the Iterator version as well, but for now, let's land a version in JavaScript and add some basic tests.

Tests can be added here using a new folder called join.

Severity: -- → N/A
Priority: -- → P3
Assignee: nobody → dminor

These are from https://github.com/tc39/test262/pull/4768 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.

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
QA Whiteboard: [qa-triage-done-c153/b152]
No longer depends on: 2056114
No longer depends on: 2056233
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: