Skip to content

Disallow programs where function declarations do not appear at the top of their block scope #40

Closed
@ning-y

Description

@ning-y
const f = g();

function g() {
    return 1;
}

Throws reference error in source, but should work according to ES6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or requestminorless important than important but more than nice-to-have

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions