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), orvcbuild 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