Skip to content

ES2022 Error option in constructor is not polyfilled #4233

@jzhan-canva

Description

@jzhan-canva

In ES2022, Error constructor can receives 2nd argument option: {cause?: unknown}
I can see closure compiler's extern is updated to reflect this
However, the constructor is not polyfilled
This makes the old browser miss the cause information even if option.cause is provided to constructor

I understand this is tricky to polyfill, as js.comp.polyfill is only capable polyfilling something that is missing, where in this case it's extending a existing constructor

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions