Skip to content

TC39 proposal - Error.cause property #45167

Closed
@sirian

Description

@sirian

lib.es2021d.ts Update Request - Error.cause property

Proposal (Stage 3)
https://github.com/tc39/proposal-error-cause

Already implemented in Chrome 93:
https://www.chromestatus.com/feature/5727099325251584

Sample Code

interface Error {
    cause?: any;
}

interface ErrorInit {
    cause?: any;
}

interface ErrorConstructor {
    new(message?: string, init?: ErrorInit): Error;
    (message?: string, init?: ErrorInit): Error;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptES NextNew featurers for ECMAScript (a.k.a. ESNext)Help WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions