Skip to content

errors: remove eager stack generation for node errors - #39182

Merged
devsnek merged 1 commit into
nodejs:masterfrom
devsnek:better-error-stuff
Jul 8, 2021
Merged

errors: remove eager stack generation for node errors#39182
devsnek merged 1 commit into
nodejs:masterfrom
devsnek:better-error-stuff

Conversation

@devsnek

@devsnekdevsnek commented Jun 28, 2021

Copy link
Copy Markdown
Member

Moves logic from addCodeToName to prepareStackTrace, which saves some upfront perf and also allows node errors to be overridden by overrideStackTrace.

cc @guybedford

@github-actionsgithub-actionsBot added errors Issues and PRs related to JavaScript errors originated in Node.js core. http2 Issues or PRs related to the http2 subsystem. needs-ci PRs that need a full CI run. labels Jun 28, 2021

@guybedfordguybedford 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.

Thanks for working on this, seems good to me. If anything the extended outputs on the cases that changed seem like an improvement as well.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@devsnek
devsnek requested a review from BridgeARJuly 3, 2021 04:08
@devsnek

Copy link
Copy Markdown
MemberAuthor

thanks for fixing this up guy. added ruben since this touches the repl tests.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@devsnekdevsnek removed the needs-ci PRs that need a full CI run. label Jul 3, 2021
@guybedford

Copy link
Copy Markdown
Contributor

Strictly speaking this PR can land now. Did you still want to wait on a review from @BridgeAR further here Gus?

@devsnek

Copy link
Copy Markdown
MemberAuthor

🤷‍♂️ maybe give it a couple more days

PR-URL: nodejs#39182
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@devsnek
devsnekforce-pushed the better-error-stuff branch from 3943432 to 1782170CompareJuly 8, 2021 01:53
@devsnek
devsnek merged commit 1782170 into nodejs:masterJul 8, 2021
@devsnek
devsnek deleted the better-error-stuff branch July 8, 2021 01:53
targos pushed a commit that referenced this pull request Jul 11, 2021
PR-URL: #39182
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@targostargos mentioned this pull request Jul 13, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

errorsIssues and PRs related to JavaScript errors originated in Node.js core.http2Issues or PRs related to the http2 subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@devsnek@nodejs-github-bot@guybedford@jasnell@targos