Skip to content

refactor: use built-in Error.isError - #2892

Open
tido64 wants to merge 1 commit into
trunkfrom
tido/use-builtin-iserror
Open

refactor: use built-in Error.isError#2892
tido64 wants to merge 1 commit into
trunkfrom
tido/use-builtin-iserror

Conversation

@tido64

@tido64 tido64 commented Jul 31, 2026

Copy link
Copy Markdown
Member

Description

Use built-in Error.isError instead of instanceof.

Note that this was recently introduced in Node 24.3. We cannot use it in public-facing code.

Platforms affected

  • Android
  • iOS
  • macOS
  • visionOS
  • Windows

Test plan

n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant