Skip to content

Variable makeErrorCause is redeclared and causing issues in compiler #49

@alanhett

Description

@alanhett

Thank you for building this library. This section of code is causing some issues:

function makeErrorCause(value, _super) {
    if (_super === void 0) { _super = makeErrorCause.BaseError; }
    return makeError(value, _super);
}
var makeErrorCause;

The function/variable makeErrorCause is declared twice, and when SWC tries to compile this module, it throws a compile error that "the name makeErrorCause is defined multiple times."

I'm not sure why the 2nd var declaration is there, but commenting it out fixes the compile error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions