Skip to content

Commit 8df8328

Browse files
committed
readline: make AsyncIterator stable
1 parent 9636a35 commit 8df8328

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

doc/api/readline.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,13 @@ The `rl.write()` method will write the data to the `readline` `Interface`'s
312312
### rl\[Symbol.asyncIterator\]()
313313
<!-- YAML
314314
added: v11.4.0
315+
changes:
316+
- version: REPLACEME
317+
pr-url: https://github.com/nodejs/node/pull/26989
318+
description: AsyncIterator support is not experimental anymore.
315319
-->
316320

317-
> Stability: 1 - Experimental
321+
> Stability: 2 - Stable
318322
319323
* Returns: {AsyncIterator}
320324

lib/readline.js

-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const {
3333
} = require('internal/errors').codes;
3434
const { validateString } = require('internal/validators');
3535
const { inspect } = require('internal/util/inspect');
36-
const { emitExperimentalWarning } = require('internal/util');
3736
const EventEmitter = require('events');
3837
const {
3938
CSI,
@@ -1068,8 +1067,6 @@ Interface.prototype._ttyWrite = function(s, key) {
10681067
};
10691068

10701069
Interface.prototype[Symbol.asyncIterator] = function() {
1071-
emitExperimentalWarning('readline Interface [Symbol.asyncIterator]');
1072-
10731070
if (this[kLineObjectStream] === undefined) {
10741071
if (Readable === undefined) {
10751072
Readable = require('stream').Readable;

0 commit comments

Comments
 (0)