File tree 3 files changed +6
-11
lines changed
3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ const {
56
56
} = primordials ;
57
57
const config = internalBinding ( 'config' ) ;
58
58
const internalTimers = require ( 'internal/timers' ) ;
59
- const { deprecate, lazyDOMExceptionClass } = require ( 'internal/util' ) ;
59
+ const { deprecate } = require ( 'internal/util' ) ;
60
60
61
61
setupProcessObject ( ) ;
62
62
Original file line number Diff line number Diff line change 6
6
SymbolIterator,
7
7
} = primordials ;
8
8
9
- const kDestroyed = Symbol ( 'kDestroyed' ) ;
10
9
const kIsErrored = Symbol ( 'kIsErrored' ) ;
11
10
const kIsReadable = Symbol ( 'kIsReadable' ) ;
12
11
const kIsDisturbed = Symbol ( 'kIsDisturbed' ) ;
@@ -112,14 +111,6 @@ function isReadableFinished(stream, strict) {
112
111
) ;
113
112
}
114
113
115
- function isDisturbed ( stream ) {
116
- return ! ! ( stream && (
117
- stream . readableDidRead ||
118
- stream . readableAborted ||
119
- stream [ kIsDisturbed ]
120
- ) ) ;
121
- }
122
-
123
114
function isReadable ( stream ) {
124
115
if ( stream && stream [ kIsReadable ] != null ) return stream [ kIsReadable ] ;
125
116
const r = isReadableNodeStream ( stream ) ;
Original file line number Diff line number Diff line change @@ -1283,7 +1283,11 @@ Interface.prototype._ttyWrite = function(s, key) {
1283
1283
/**
1284
1284
* Creates an `AsyncIterator` object that iterates through
1285
1285
* each line in the input stream as a string.
1286
- * @returns {Symbol.AsyncIterator }
1286
+ * @typedef {{
1287
+ * [Symbol.asyncIterator]: () => InterfaceAsyncIterator,
1288
+ * next: () => Promise<string>
1289
+ * }} InterfaceAsyncIterator
1290
+ * @returns {InterfaceAsyncIterator }
1287
1291
*/
1288
1292
Interface . prototype [ SymbolAsyncIterator ] = function ( ) {
1289
1293
if ( this [ kLineObjectStream ] === undefined ) {
You can’t perform that action at this time.
0 commit comments