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

REPL 'let' bug #14092

Closed
dennisberko opened this issue Jul 5, 2017 · 2 comments
Closed

REPL 'let' bug #14092

dennisberko opened this issue Jul 5, 2017 · 2 comments
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. repl Issues and PRs related to the REPL subsystem.

Comments

@dennisberko
Copy link

  • 8.1.3:
  • macOS Sierra 10.12.5:

Lets say I run the following code in the REPL

let url = require('url')
let parsed = url.parse(null)

It correctly spews out a type error

TypeError: Parameter "url" must be a string, not object

However, if I subsequently try to define parsed I get errors

parsed = 1
ReferenceError: parsed is not defined


let parsed = 1
SyntaxError: Identifier 'parsed' has already been declared
@vsemozhetbyt vsemozhetbyt added the repl Issues and PRs related to the REPL subsystem. label Jul 5, 2017
@vsemozhetbyt
Copy link
Contributor

vsemozhetbyt commented Jul 5, 2017

Unfortunately, this is a known issue. See recent #13919 and the reference there.

@vsemozhetbyt vsemozhetbyt added the duplicate Issues and PRs that are duplicates of other issues or PRs. label Jul 5, 2017
@vsemozhetbyt
Copy link
Contributor

I shall close this issue for now as a duplicate, but feel free to ask any more questions here or in the similar issues.

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.
Projects
None yet
Development

No branches or pull requests

2 participants