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 allows multiple let declarations #9499

Closed
ghost opened this issue Feb 14, 2021 · 1 comment
Closed

Repl allows multiple let declarations #9499

ghost opened this issue Feb 14, 2021 · 1 comment
Labels
working as designed this is working as intended

Comments

@ghost
Copy link

ghost commented Feb 14, 2021

Running the deno Repl, once can write let a = 0, enter a new-line, then enter let a = 1.

This is usually a strict mode SyntaxError, can someone test against a browser console?

@nayeemrmn
Copy link
Collaborator

nayeemrmn commented Feb 14, 2021

V8 allows it in REPLs for convenience. We explicitly enable this here: #7784. Intended behaviour.

@kitsonk kitsonk added the working as designed this is working as intended label Feb 14, 2021
@ghost ghost closed this as completed Feb 14, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
working as designed this is working as intended
Projects
None yet
Development

No branches or pull requests

2 participants