Skip to content

parser: redeclare variable with function declaration inside the function should not throw error #10159

@Dunqing

Description

@Dunqing
// Valid
function a() { var b; function b() { } }`

// Invalid
function a() { class b { }; function b() { } }

Reporting by https://github.com/oxc-project/monitor-oxc/actions/runs/14189330473/job/39750446597

Metadata

Metadata

Assignees

Labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions