Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove VM string in welcome message
  • Loading branch information
princejwesley committed Apr 2, 2017
commit f304f8c9dff175fda42b672818c82640192767cd
2 changes: 1 addition & 1 deletion lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ function REPLServer(prompt,
const jsEngineVersion = process.versions[jsEngine];
const docURL = `https://nodejs.org/dist/${version}/docs/api/repl.html`;

const welcome = `Welcome to Node.js ${version} (${jsEngine} VM,` +
const welcome = `Welcome to Node.js ${version} (${jsEngine},` +
` ${jsEngineVersion})\nType ^M or enter to execute,` +

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Node.js ${version} (${jsEngine} ${jsEngineVersion}) should suffice; the "VM" seems a bit extraneous.

' ^J to continue, ^C to exit\n' +
`Or try .help for help, more at ${docURL}\n\n`;
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-repl-welcome-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const jsEngine = process.jsEngine || 'v8';
const jsEngineVersion = process.versions[jsEngine];
const docURL = `https://nodejs.org/dist/${version}/docs/api/repl.html`;
const welcomeMessage =
`Welcome to Node.js ${version} (${jsEngine} VM,` +
`Welcome to Node.js ${version} (${jsEngine},` +
` ${jsEngineVersion})\nType ^M or enter to execute,` +
' ^J to continue, ^C to exit\n' +
`Or try .help for help, more at ${docURL}\n\n`;
Expand Down