| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e146686 commit 276e298
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,7 @@ | |||
| 19 | 19 | // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE | |
| 20 | 20 | // USE OR OTHER DEALINGS IN THE SOFTWARE. | |
| 21 | 21 | ||
| 22 | - /* A repl library that you can include in your own code to get a runtime | ||
| 22 | + /* A REPL library that you can include in your own code to get a runtime | ||
| 23 | 23 | * interface to your program. | |
| 24 | 24 | * | |
| 25 | 25 | * const repl = require("repl"); | |
@@ -591,7 +591,7 @@ function REPLServer(prompt, | |||
| 591 | 591 | 'module'; | |
| 592 | 592 | if (StringPrototypeIncludes(e.message, importErrorStr)) { | |
| 593 | 593 | e.message = 'Cannot use import statement inside the Node.js ' + | |
| 594 | - 'repl, alternatively use dynamic import'; | ||
| 594 | + 'REPL, alternatively use dynamic import'; | ||
| 595 | 595 | e.stack = e.stack.replace(/SyntaxError:.*\n/, | |
| 596 | 596 | `SyntaxError: ${e.message}\n`); | |
| 597 | 597 | } | |
@@ -814,7 +814,7 @@ function REPLServer(prompt, | |||
| 814 | 814 | ||
| 815 | 815 | if (e && !self[kBufferedCommandSymbol] && cmd.trim().startsWith('npm ')) { | |
| 816 | 816 | self.output.write('npm should be run outside of the ' + | |
| 817 | - 'node repl, in your normal shell.\n' + | ||
| 817 | + 'node REPL, in your normal shell.\n' + | ||
| 818 | 818 | '(Press Control-D to exit.)\n'); | |
| 819 | 819 | self.displayPrompt(); | |
| 820 | 820 | return; | |
@@ -1521,7 +1521,7 @@ function defineDefaultCommands(repl) { | |||
| 1521 | 1521 | }); | |
| 1522 | 1522 | ||
| 1523 | 1523 | repl.defineCommand('exit', { | |
| 1524 | - help: 'Exit the repl', | ||
| 1524 | + help: 'Exit the REPL', | ||
| 1525 | 1525 | action: function() { | |
| 1526 | 1526 | this.close(); | |
| 1527 | 1527 | } | |
@@ -1543,7 +1543,7 @@ function defineDefaultCommands(repl) { | |||
| 1543 | 1543 | this.output.write(line); | |
| 1544 | 1544 | } | |
| 1545 | 1545 | this.output.write('\nPress ^C to abort current expression, ' + | |
| 1546 | - '^D to exit the repl\n'); | ||
| 1546 | + '^D to exit the REPL\n'); | ||
| 1547 | 1547 | this.displayPrompt(); | |
| 1548 | 1548 | } | |
| 1549 | 1549 | }); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -372,7 +372,7 @@ const errorTests = [ | |||
| 372 | 372 | { | |
| 373 | 373 | send: 'npm install foobar', | |
| 374 | 374 | expect: [ | |
| 375 | - 'npm should be run outside of the node repl, in your normal shell.', | ||
| 375 | + 'npm should be run outside of the node REPL, in your normal shell.', | ||
| 376 | 376 | '(Press Control-D to exit.)' | |
| 377 | 377 | ] | |
| 378 | 378 | }, | |
@@ -453,7 +453,7 @@ const errorTests = [ | |||
| 453 | 453 | /\.load/, | |
| 454 | 454 | /\.save/, | |
| 455 | 455 | '', | |
| 456 | - 'Press ^C to abort current expression, ^D to exit the repl', | ||
| 456 | + 'Press ^C to abort current expression, ^D to exit the REPL', | ||
| 457 | 457 | /'thefourtheye'/ | |
| 458 | 458 | ] | |
| 459 | 459 | }, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments