node icon indicating copy to clipboard operation
node copied to clipboard

`Error.isError` does not properly works with `DOMException`

Open zloirock opened this issue 8 months ago • 1 comments

Version

v24.0.0-nightly20250503f552c86fec

Platform

macOS 15.5

What steps will reproduce the bug?

Error.isError(new DOMException) // => false

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

true

Additional information

Similar to https://github.com/oven-sh/bun/issues/15821

zloirock avatar May 03 '25 09:05 zloirock

It seems it's a duplicate of https://github.com/nodejs/node/issues/56497, but it's actual since Error.isError was enabled by default in V8 13.0 -> 13.6 -> Node 24.

zloirock avatar May 03 '25 09:05 zloirock