Skip to content

Error.prototype.cause has inaccurate value type #48098

Closed
@crowlKats

Description

@crowlKats

lib Update Request

Missing / Incorrect Definition

Error.prototype.cause's value is currently set to Error, which is inaccurate as it can accept anything, and as such should be unknown.

Sample Code

new Error("foo", { cause: "bar" });

Documentation Link

https://tc39.es/ecma262/#sec-installerrorcause

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions