We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Symbol.dispose
1 parent b10ac9a commit 984f7efCopy full SHA for 984f7ef
doc/api/readline.md
@@ -272,6 +272,14 @@ the `'close'` event will be emitted.
272
Calling `rl.close()` does not immediately stop other events (including `'line'`)
273
from being emitted by the `InterfaceConstructor` instance.
274
275
+### `rl[Symbol.dispose]()`
276
+
277
+<!-- YAML
278
+added: REPLACEME
279
+-->
280
281
+Alias for `rl.close()`.
282
283
### `rl.pause()`
284
285
<!-- YAML
lib/internal/readline/interface.js
@@ -1371,6 +1371,7 @@ class Interface extends InterfaceConstructor {
1371
return this[kLineObjectStream];
1372
}
1373
1374
+Interface.prototype[SymbolDispose] = Interface.prototype.close;
1375
1376
module.exports = {
1377
Interface,
0 commit comments