You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update internal util isError with new Error.isError #57961
With Version 24.0.0 V8 will be updated to 13.4 and Error.isError will be available, with that we can update the way we check if an object is an error in some places.
Following @jasnell suggestion in @geeksilva97 PR #55406, I would like to start some issues regarding where this change is necessary, starting with the isError present in lib/internal/util
I remember deprecating all the all the util.is functions. util.isError is in fact EOL https://nodejs.org/api/deprecations.html#DEP0048
If its not used anywhere in the codebase it can be removed
Reacted by Jordan Harband, Jurj Andrei George and Miguel Marcondes Filho
I remember deprecating all the all the util.is functions. util.isError is in fact EOL https://nodejs.org/api/deprecations.html#DEP0048 If its not used anywhere in the codebase it can be removed
You're right about that, but this one is related to isError from the internal helper.
This issue has been marked as stale due to 210 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.
This issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 240 days).
If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.
Activity
ljharb commentedon Apr 21, 2025
We should probably deprecate
util.types.isNativeErroras well as of v24?marco-ippolito commentedon Apr 22, 2025
I remember deprecating all the all the
util.isfunctions.util.isErroris in fact EOLhttps://nodejs.org/api/deprecations.html#DEP0048
If its not used anywhere in the codebase it can be removed
miguelmarcondesf commentedon Apr 22, 2025
You're right about that, but this one is related to
isErrorfrom the internal helper.Renegade334 commentedon May 2, 2025
FWIW, I'm seeing a 50% performance regression for
Error.isErrorover the current util/typesIsNativeErrorbinding in the latest build.github-actions commentedon Apr 20, 2026
This issue has been marked as stale due to 210 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.
github-actions commentedon May 20, 2026
This issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 240 days).
If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.