Closed
Description
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
Labels
No labels