Skip to content

Modifying Error.code may become a problem!? #1658

@clintwood

Description

@clintwood

I encountered this issue when using Rollup with @std/esm. @jdalton pointed me to makeNodeError where it looks like node is making Error.code readonly.

I do not know what the correct standard on the above use of code property on an Error object is so just giving a heads up in case this becomes an issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions