Skip to content

DOMException should have [[ErrorData]] internal slot #56497

Closed
@petamoriken

Description

@petamoriken

Version

N/A

Platform

N/A

Subsystem

N/A

What steps will reproduce the bug?

This bug has not surfaced yet, but when V8 implements Error.isError, it should return true for DOMException.

Error.isError(new DOMException(1)) // => false, true expected

How often does it reproduce? Is there a required condition?

Not yet.

What is the expected behavior? Why is that the expected behavior?

Due to a change in Web IDL.
whatwg/webidl#1421

What do you see instead?

Not yet.

Additional information

This issue can be resolved by using Reflect.construct.
denoland/deno#27342

As a side effect, util.types.isNativeError will return true as well.

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