Skip to content

Commit ee94a49

Browse files
committed
move Iterator.prototype.join to stage 2.7
1 parent 04c96ad commit ee94a49

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

docs/web/docs/menu.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@
266266
{
267267
"title": "Iterator chunking",
268268
"url": "{docs-version}/docs/features/proposals/iterator-chunking"
269+
},
270+
{
271+
"title": "Iterator join",
272+
"url": "{docs-version}/docs/features/proposals/iterator-join"
269273
}
270274
]
271275
},
@@ -341,10 +345,6 @@
341345
{
342346
"title": "Function.prototype.demethodize",
343347
"url": "{docs-version}/docs/features/proposals/function-prototype-demethodize"
344-
},
345-
{
346-
"title": "Iterator join",
347-
"url": "{docs-version}/docs/features/proposals/iterator-join"
348348
}
349349
]
350350
}

scripts/build-entries/entries-definitions.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3471,7 +3471,7 @@ export const proposals = {
34713471
},
34723472
'iterator-join': {
34733473
link: 'https://github.com/bakkot/proposal-iterator-join',
3474-
stage: 0,
3474+
stage: 2.7,
34753475
modules: [
34763476
'esnext.iterator.join',
34773477
],

tests/entries/unit.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,10 +742,11 @@ for (PATH of ['@core-js/pure', 'core-js']) {
742742
ok(load(NS, 'function/prototype/demethodize').call([].slice)([1, 2, 3], 1)[0] === 2);
743743
ok(load(NS, 'iterator/range')(1, 2).next().value === 1);
744744
ok(typeof load(NS, 'iterator/chunks') == 'function');
745-
ok(typeof load(NS, 'iterator/join') == 'function');
745+
ok(load(NS, 'iterator/join')([1, 2].values()) === '1,2');
746746
ok(typeof load(NS, 'iterator/to-async') == 'function');
747747
ok(typeof load(NS, 'iterator/windows') == 'function');
748748
ok(typeof load(NS, 'iterator/prototype/chunks') == 'function');
749+
ok(load(NS, 'iterator/prototype/join').call([1, 2].values()) === '1,2');
749750
ok(typeof load(NS, 'iterator/prototype/windows') == 'function');
750751
ok(typeof load(NS, 'iterator/prototype/to-async') == 'function');
751752
ok(load(NS, 'map/from')([[1, 2], [3, 4]]) instanceof Map);

0 commit comments

Comments
 (0)