diff --git a/doc/api/repl.md b/doc/api/repl.md index 60c200699a124e..6f16f922023134 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -335,7 +335,6 @@ const replServer = repl.start({prompt: '> '}); replServer.defineCommand('sayhello', { help: 'Say hello', action(name) { - this.lineParser.reset(); this.bufferedCommand = ''; console.log(`Hello, ${name}!`); this.displayPrompt();