Skip to content

Better infer the name of constant-like function expressions #1367

@ericelliott

Description

@ericelliott

See this gist for details.

The un-optimized function body gets moved as-is into a parameter that's passed into a wrapper function so that the function can be wrapped with a named function declaration...

I wonder if other ES6 things are broken by name wrappers, too?

Expected:

Tail calls should still be optimized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions