Skip to content

Resolving reference incorrectly for FormalParameters #3682

@Dunqing

Description

@Dunqing

Playground Link

let b = 0;
function hello(a = b, b = 0) {}

Currently, The b in a = b accesses what was actually b = 0, but now resolves to let b = 0.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory - Bug

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions