Skip to content

let declaration treated as var declaration #119

@adiba

Description

@adiba

This should throw an error on execute if a is not defined outside the blocks.

{
    let a;
}
{
    a++;
}

However, escope treats both as as the same variable.
Tested with http://esprima.org/demo/rename.html

Related: #57

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions