Skip to content

Deno 1.23 added Error.captureStackTrace#29314

Open
quad wants to merge 2 commits intomdn:mainfrom
quad:patch-1
Open

Deno 1.23 added Error.captureStackTrace#29314
quad wants to merge 2 commits intomdn:mainfrom
quad:patch-1

Conversation

@quad
Copy link
Copy Markdown

@quad quad commented Mar 22, 2026

Summary

Deno supports Error.captureStackTrace since v1.22.2.

Test results and supporting details

See: #29313

Related issues

Fixes: #29313

@github-actions github-actions bot added data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript size:xs [PR only] 0-6 LoC changed labels Mar 22, 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).

@coursgranja01-del

This comment was marked as spam.

@caugner caugner changed the title Update version_added for deno in Error.captureStackTrace Deno 1.23 added Error.captureStackTrace Mar 27, 2026
"chrome_android": "mirror",
"deno": {
"version_added": false
"version_added": "1.22.2"
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.

According to the tags on denoland/deno@0cd8f53 this commit first appeared in 1.23.

Suggested change
"version_added": "1.22.2"
"version_added": "1.23"

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

You're looking at the commit on main. As I linked in #29313, the actual first commit denoland/deno@938a550 appeared on the 1.22 branch on tag 1.22.2.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Moreover, deno uses v8. These commits are only when Error.captureStackTrace type-checked correctly. It worked long before that:

~/dev/mdn
❯ mise exec [email protected] -- deno eval -- 'console.log(Error.captureStackTrace)'
[Function: captureStackTrace]

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

Labels

data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript size:xs [PR only] 0-6 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

javascript.builtins.Error.captureStackTrace - Deno 2.4.1 supports it

3 participants