Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

Function#name check in the runtime breaks when minified #156

@fson

Description

@fson

Regenerator runtime breaks when code is minified with UglifyJS that removes the function name GeneratorFunction, because the code checks for the Function#name and throws if it does not match:

 if (GF.name !== GFName) throw new Error(GFName + " renamed?");

Similar issue (babel/babel#283) in 6to5 that uses regenerator runtime was fixed by removing the check: babel/babel@c92fd6f

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions