Skip to content

Commit 00831f0

Browse files
mcollinaBethGriggs
authored andcommitted
stream: make Symbol.asyncIterator support stable
PR-URL: #26989 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Masashi Hirano <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
1 parent 18b140a commit 00831f0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

doc/api/stream.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1275,9 +1275,13 @@ myReader.on('readable', () => {
12751275
##### readable\[Symbol.asyncIterator\]()
12761276
<!-- YAML
12771277
added: v10.0.0
1278+
changes:
1279+
- version: REPLACEME
1280+
pr-url: https://github.com/nodejs/node/pull/26989
1281+
description: Symbol.asyncIterator support is no longer experimental.
12781282
-->
12791283

1280-
> Stability: 1 - Experimental
1284+
> Stability: 2 - Stable
12811285
12821286
* Returns: {AsyncIterator} to fully consume the stream.
12831287

lib/_stream_readable.js

-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ const {
3838
ERR_METHOD_NOT_IMPLEMENTED,
3939
ERR_STREAM_UNSHIFT_AFTER_END_EVENT
4040
} = require('internal/errors').codes;
41-
const { emitExperimentalWarning } = require('internal/util');
4241

4342
// Lazy loaded to improve the startup performance.
4443
let StringDecoder;
@@ -1040,7 +1039,6 @@ Readable.prototype.wrap = function(stream) {
10401039
};
10411040

10421041
Readable.prototype[Symbol.asyncIterator] = function() {
1043-
emitExperimentalWarning('Readable[Symbol.asyncIterator]');
10441042
if (createReadableStreamAsyncIterator === undefined) {
10451043
createReadableStreamAsyncIterator =
10461044
require('internal/streams/async_iterator');

0 commit comments

Comments
 (0)