Skip to content

REPL 'let' bug #14092

Closed
Closed
@dennisberko

Description

@dennisberko
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateIssues and PRs that are duplicates of other issues or PRs.replIssues and PRs related to the REPL subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions