Skip to content

Node.js 24 supports SuppressedError - #30511

Merged
caugner merged 1 commit into
mdn:mainfrom
RizgarOzan:suppressederror-nodejs
Sep 15, 2026
Merged

caugner merged 1 commit into
mdn:mainfrom
RizgarOzan:suppressederror-nodejs

Conversation

@RizgarOzan

Copy link
Copy Markdown
Contributor

Summary

Sets nodejs.version_added to "24.0.0" for javascript.builtins.SuppressedError and its three subfeatures (constructor, error, suppressed), which were all false.

Test results and supporting details

  • Node.js 24.0.0 release notes: ships V8 13.6 and lists explicit resource management as a notable change ("src: enable explicit resource management", src: enable Float16Array and explicit resource management nodejs/node#58154).
  • nodejs/node@8a258eb7b1 ("test: handle explicit resource management globals", deps: update V8 to 13.6 nodejs/node#58070) adds SuppressedError, DisposableStack and AsyncDisposableStack to Node's known globals in test/common/globals.js. That file has no SuppressedError at tag v23.11.1 and has it at v24.0.0, so 24.0.0 is the first release.
  • Consistent with existing BCD data: DisposableStack, AsyncDisposableStack, statements.using and statements.await_using already have nodejs: "24.0.0".
  • Local check on Node 24.14.1: new SuppressedError(1, 2, "m") has .error === 1, .suppressed === 2, .message === "m" and is instanceof Error.
  • npm run lint -- javascript/builtins/SuppressedError.json → "All data passed linting!"; prettier check clean.

Related issues

Fixes #30376

@github-actions github-actions Bot added data:js Compatibility data for JavaScript features. https://developer.mozilla.org/docs/Web/JavaScript size:s Pull request changing 7-24 lines of code. labels Sep 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@caugner caugner left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I came to the same conclusion in #29619.

@caugner
caugner merged commit 63c6438 into mdn:main Sep 15, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:js Compatibility data for JavaScript features. https://developer.mozilla.org/docs/Web/JavaScript size:s Pull request changing 7-24 lines of code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

javascript.builtins.SuppressedError - compat data erroneously says SuppressedError is not available in Node.js

2 participants