-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
Pasting code into node repl makes it exit on Windows #21773
Copy link
Copy link
Closed
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for 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
Activity
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for 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.
Node v8.11.2
Win10 Pro
I run node from cmd.exe, and simply paste this code using r-click:
The moment I paste it, node exists and I get this output:
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 on8.11.3as well