Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speculative execution in REPL shows TypeError overwriting input #54504

Closed
mikesamuel opened this issue Aug 22, 2024 · 1 comment · Fixed by #54512
Closed

Speculative execution in REPL shows TypeError overwriting input #54504

mikesamuel opened this issue Aug 22, 2024 · 1 comment · Fixed by #54512
Assignees
Labels
confirmed-bug Issues with confirmed bugs. repl Issues and PRs related to the REPL subsystem.

Comments

@mikesamuel
Copy link
Contributor

Version

v22.6.0

Platform

Darwin Mikes-MacBook-Pro.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:00 PDT 2024; root:xnu-10063.141.2~1/RELEASE_X86_64 x86_64

Subsystem

No response

What steps will reproduce the bug?

As shown in attached video:

  1. From command line run node
  2. At the prompt, enter the following without hitting enter: '\v'.codeAt(0)
  3. As soon as the close parenthesis is typed, see:

TypeError: "
".codeAt is not a function

The vertical tab pulled the cursor away from the prompt line.

Mitigation: Hitting Ctrl-l resets the cursor to expected.

node-screen-session-typeahead.mov

How often does it reproduce? Is there a required condition?

Occurs every time

What is the expected behavior? Why is that the expected behavior?

The REPL cursor should stay on the prompt line, not overlap any error message due to speculative execution.

What do you see instead?

The vertical tab pulled the cursor away from the prompt line.

Additional information

No response

@avivkeller avivkeller added repl Issues and PRs related to the REPL subsystem. repro-exists labels Aug 22, 2024
@avivkeller
Copy link
Member

$ node
Welcome to Node.js v22.7.0.
Type ".help" for more information.
> "\v".notAFunction()
TypeError: "
            ".notAFunction is not a function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed-bug Issues with confirmed bugs. repl Issues and PRs related to the REPL subsystem.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants