The Wayback Machine - https://web.archive.org/web/20250718050328/https://github.com/nodejs/node/commit/984f7ef5bd
File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,14 @@ the `'close'` event will be emitted.
272272Calling ` rl.close() ` does not immediately stop other events (including ` 'line' ` )
273273from being emitted by the ` InterfaceConstructor ` instance.
274274
275+ ### ` rl[Symbol.dispose]() `
276+
277+ <!-- YAML
278+ added: REPLACEME
279+ -->
280+
281+ Alias for ` rl.close() ` .
282+
275283### ` rl.pause() `
276284
277285<!-- YAML
Original file line number Diff line number Diff line change @@ -1371,6 +1371,7 @@ class Interface extends InterfaceConstructor {
13711371 return this [ kLineObjectStream ] ;
13721372 }
13731373}
1374+ Interface . prototype [ SymbolDispose ] = Interface . prototype . close ;
13741375
13751376module . exports = {
13761377 Interface,
You can’t perform that action at this time.
0 commit comments