Skip to content

repl: make REPLServer.bufferedCommand private

The REPLServer.bufferedCommand property was undocumented, except for its usage appearing, unexplained, in an example for REPLServer.defineCommand. This commit deprecates that property, privatizes it, and adds a REPLServer.clearBufferedCommand() function that will clear the buffer.

Refs: https://github.com/nodejs/node/issues/12686

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

repl, doc

Merge request reports

Loading