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

Cannot reuse variable names after declaration fails #cli #19492

Closed
fgarcia opened this issue Mar 20, 2018 · 1 comment
Closed

Cannot reuse variable names after declaration fails #cli #19492

fgarcia opened this issue Mar 20, 2018 · 1 comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. repl Issues and PRs related to the REPL subsystem. v8 engine Issues and PRs related to the V8 dependency. wontfix Issues that will not be fixed.

Comments

@fgarcia
Copy link

fgarcia commented Mar 20, 2018

  • Version: v8.10.0
  • Platform: Darwin zuhause 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64

While using the node interpreter, I can't re-declare a variable after making a mistake. Something like this:

> let dx = k
ReferenceError: k is not defined
> dx
ReferenceError: dx is not defined
> let dx = 1
SyntaxError: Identifier 'dx' has already been declared
> dx = 1
ReferenceError: dx is not defined
>

@vsemozhetbyt
Copy link
Contributor

See #8441

@vsemozhetbyt vsemozhetbyt added wontfix Issues that will not be fixed. repl Issues and PRs related to the REPL subsystem. v8 engine Issues and PRs related to the V8 dependency. labels Mar 20, 2018
@richardlau richardlau added the duplicate Issues and PRs that are duplicates of other issues or PRs. label Mar 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. repl Issues and PRs related to the REPL subsystem. v8 engine Issues and PRs related to the V8 dependency. wontfix Issues that will not be fixed.
Projects
None yet
Development

No branches or pull requests

3 participants