-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
Node v8.11.2
Win10 Pro
I run node from cmd.exe, and simply paste this code using r-click:
var crypto = require('crypto');
function hmacN(N)
{
console.log(N);
}
The moment I paste it, node exists and I get this output:
Microsoft Windows [Version 10.0.17134.81]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\username>node
> var crypto = require('crypto');
undefined
> function hmacN(N)
... {
... console.log(N);
... }
undefined
>
C:\Users\username>
This used to work properly (e.g. it shouldn't exit), that's how I always test snippets by pasting them into node-repl console.
Interesting observation: if I paste incomplete code (without last }
) then it won't exit and I need to manually complete it with the last brace and can continue. Or, if pasted block doesn't end with a new line character, then it will also won't exist and will wait for manual [ENTER]
key press. Also, to confirm, the problem happens on 8.11.3
as well
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.