From b20e6ed94ef7b6318f3a642e3982b46586203a8e Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 4 Jul 2020 06:32:56 -0700 Subject: [PATCH] repl: fix verb conjugation in deprecation message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/34198 Reviewed-By: Michaƫl Zasso Reviewed-By: Ruben Bridgewater Reviewed-By: Zeyu Yang Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell --- lib/repl.js | 8 ++++---- test/parallel/test-repl-options.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/repl.js b/lib/repl.js index f526dffcf7e5a0..26376a43c56d66 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -225,13 +225,13 @@ function REPLServer(prompt, ObjectDefineProperty(this, 'inputStream', { get: pendingDeprecation ? deprecate(() => this.input, - 'repl.inputStream and repl.outputStream is deprecated. ' + + 'repl.inputStream and repl.outputStream are deprecated. ' + 'Use repl.input and repl.output instead', 'DEP0141') : () => this.input, set: pendingDeprecation ? deprecate((val) => this.input = val, - 'repl.inputStream and repl.outputStream is deprecated. ' + + 'repl.inputStream and repl.outputStream are deprecated. ' + 'Use repl.input and repl.output instead', 'DEP0141') : (val) => this.input = val, @@ -241,13 +241,13 @@ function REPLServer(prompt, ObjectDefineProperty(this, 'outputStream', { get: pendingDeprecation ? deprecate(() => this.output, - 'repl.inputStream and repl.outputStream is deprecated. ' + + 'repl.inputStream and repl.outputStream are deprecated. ' + 'Use repl.input and repl.output instead', 'DEP0141') : () => this.output, set: pendingDeprecation ? deprecate((val) => this.output = val, - 'repl.inputStream and repl.outputStream is deprecated. ' + + 'repl.inputStream and repl.outputStream are deprecated. ' + 'Use repl.input and repl.output instead', 'DEP0141') : (val) => this.output = val, diff --git a/test/parallel/test-repl-options.js b/test/parallel/test-repl-options.js index cb7b2f08b65468..ca3cf2a3a4b3af 100644 --- a/test/parallel/test-repl-options.js +++ b/test/parallel/test-repl-options.js @@ -35,7 +35,7 @@ common.expectWarning({ DeprecationWarning: { DEP0142: 'repl._builtinLibs is deprecated. Check module.builtinModules instead', - DEP0141: 'repl.inputStream and repl.outputStream is deprecated. ' + + DEP0141: 'repl.inputStream and repl.outputStream are deprecated. ' + 'Use repl.input and repl.output instead', DEP0124: 'REPLServer.rli is deprecated', }