Skip to content

Commit 0eac592

Browse files
doc: add performance note for ErrorisError deprecation
1 parent b026b3c commit 0eac592

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/util.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3324,6 +3324,9 @@ deprecated: REPLACEME
33243324
33253325
> Stability: 0 - Deprecated: Use [`Error.isError`][] instead.
33263326
3327+
**Note:** As of Node.js v24, `Error.isError()` is currently slower than `util.types.isNativeError()`.
3328+
If performance is critical, consider benchmarking both in your environment.
3329+
33273330
* `value` {any}
33283331
* Returns: {boolean}
33293332

0 commit comments

Comments
 (0)