Skip to content

doc: add warning to readline's close() method

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/readline into master

When close() is called on a readline instance, it is possible that data is already buffered, and will trigger 'line' events. This commit adds a warning to the corresponding docs. Note that a similar warning already exists for the pause() method.

Fixes: https://github.com/nodejs/node/issues/22615

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading