Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully cleanup source-map-support #15233

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

eyalroth
Copy link
Contributor

@eyalroth eyalroth commented Aug 2, 2024

Summary

Split from #15215. Please see that PR's description and comments for more information.

Copy link

netlify bot commented Aug 2, 2024

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 338243a
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/66ae15edf7edf400083c7ae8
😎 Deploy Preview https://deploy-preview-15233--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

let e = error;
while (typeof e === 'object' && 'stack' in e) {
e.stack;
e = e?.cause ?? {};
Copy link
Member

Choose a reason for hiding this comment

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

do we need the ?? part? the while condition does a typeof which should be fine? Or is it to guard against null?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@SimenB Pretty much, yeah.

Maybe it's better to add the null protection explicitly to the while condition; this way, it would also protect against a null been thrown for some reason.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

could you add a changelog?

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

thanks!

@SimenB SimenB merged commit 6c56895 into jestjs:main Aug 3, 2024
73 checks passed
@SimenB
Copy link
Member

SimenB commented Aug 8, 2024

Copy link

github-actions bot commented Sep 8, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants