| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -272,6 +272,14 @@ the `'close'` event will be emitted. | |||
| 272 | 272 | Calling `rl.close()` does not immediately stop other events (including `'line'`) | |
| 273 | 273 | from being emitted by the `InterfaceConstructor` instance. | |
| 274 | 274 | ||
| 275 | + ### `rl[Symbol.dispose]()` | ||
| 276 | + | ||
| 277 | + <!-- YAML | ||
| 278 | + added: REPLACEME | ||
| 279 | + --> | ||
| 280 | + | ||
| 281 | + Alias for `rl.close()`. | ||
| 282 | + | ||
| 275 | 283 | ### `rl.pause()` | |
| 276 | 284 | ||
| 277 | 285 | <!-- YAML | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1371,6 +1371,7 @@ class Interface extends InterfaceConstructor { | |||
| 1371 | 1371 | return this[kLineObjectStream]; | |
| 1372 | 1372 | } | |
| 1373 | 1373 | } | |
| 1374 | + Interface.prototype[SymbolDispose] = Interface.prototype.close; | ||
| 1374 | 1375 | ||
| 1375 | 1376 | module.exports = { | |
| 1376 | 1377 | Interface, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments