diff --git a/doc/api/readline.md b/doc/api/readline.md index bf6ee803999cdf..bee3c88f3edc71 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -311,10 +311,14 @@ The `rl.write()` method will write the data to the `readline` `Interface`'s ### rl\[Symbol.asyncIterator\]() -> Stability: 1 - Experimental +> Stability: 2 - Stable * Returns: {AsyncIterator} diff --git a/lib/readline.js b/lib/readline.js index c6b770e39dfaae..d7366357310aad 100644 --- a/lib/readline.js +++ b/lib/readline.js @@ -32,8 +32,8 @@ const { ERR_INVALID_CURSOR_POS, ERR_INVALID_OPT_VALUE } = require('internal/errors').codes; + const { debug, inherits } = require('util'); -const { emitExperimentalWarning } = require('internal/util'); const { Buffer } = require('buffer'); const EventEmitter = require('events'); const { @@ -1005,8 +1005,6 @@ Interface.prototype._ttyWrite = function(s, key) { }; Interface.prototype[Symbol.asyncIterator] = function() { - emitExperimentalWarning('readline Interface [Symbol.asyncIterator]'); - if (this[kLineObjectStream] === undefined) { if (Readable === undefined) { Readable = require('stream').Readable;