mirror of https://github.com/nodejs/node.git
readline: make Symbol.asyncIterator support stable
PR-URL: https://github.com/nodejs/node/pull/26989 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Masashi Hirano <shisama07@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>pull/27459/head
parent
1d8298a5b6
commit
4de5e0a996
|
@ -312,9 +312,13 @@ The `rl.write()` method will write the data to the `readline` `Interface`'s
|
|||
### rl\[Symbol.asyncIterator\]()
|
||||
<!-- YAML
|
||||
added: v11.4.0
|
||||
changes:
|
||||
- version: REPLACEME
|
||||
pr-url: https://github.com/nodejs/node/pull/26989
|
||||
description: Symbol.asyncIterator support is no longer experimental.
|
||||
-->
|
||||
|
||||
> Stability: 1 - Experimental
|
||||
> Stability: 2 - Stable
|
||||
|
||||
* Returns: {AsyncIterator}
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@ const {
|
|||
} = require('internal/errors').codes;
|
||||
const { validateString } = require('internal/validators');
|
||||
const { inspect } = require('internal/util/inspect');
|
||||
const { emitExperimentalWarning } = require('internal/util');
|
||||
const EventEmitter = require('events');
|
||||
const {
|
||||
CSI,
|
||||
|
@ -1075,8 +1074,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;
|
||||
|
|
Loading…
Reference in New Issue