-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Add new wordings to the API docs in process.md #35588
Conversation
I was very surprised to see that this is true… This is a bug in the report feature, imo, so I’d be careful about documenting it as if it was intentional behavior. /cc @nodejs/diagnostics |
IMO, the API definition relates to user callbacks on uncaught exceptions, not to any internal mechanisms or other functions that depend on it. IMO, common use case of this API would be to implement custom / additional behavior on exceptional scenarios, not necessarily to avoid / suppress existing behaviors such as report generation. So I would not call it (the current behavior) a bug. |
Avoiding and suppressing existing behaviors is exactly what this API was made for, namely, in the context of |
@addaleax - ok, I see your point. I will investigate how to suppress report generation, if the callback was overriden. @PoojaDurgad - in which case, the text in this PR would not be necessary, but I suggest to keep it open till that is fixed, and which case this can be modified as something like: |
This api does not alter the behavior of diagnostic report configured on uncaught exceptions. This is deemed as a bug. Honor this API. Refs: nodejs#35588 PR-URL: nodejs#35595 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Richard Lau <[email protected]>
@PoojaDurgad - the linked PR is landed. So can you pls verify #35588 (comment) ? And then, modify the change text in this PR to reflect the current behavior? |
Commit Queue failed- Loading data for nodejs/node/pull/35588 ✔ Done loading data for nodejs/node/pull/35588 ----------------------------------- PR info ------------------------------------ Title Add new wordings to the API docs in process.md (#35588) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch PoojaDurgad:process-setuncaught -> nodejs:master Labels doc, process, report Commits 3 - doc: add new wordings to the API description - doc: removed trailing whitespaces - fixup: address review comments Committers 1 - Pooja D.P PR-URL: https://github.com/nodejs/node/pull/35588 Reviewed-By: Gireesh Punathil Reviewed-By: Rich Trott ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/35588 Reviewed-By: Gireesh Punathil Reviewed-By: Rich Trott -------------------------------------------------------------------------------- ✔ Last GitHub Actions successful ℹ Doc-only changes ℹ This PR was created on Sat, 10 Oct 2020 18:26:22 GMT ✔ Approvals: 2 ✔ - Gireesh Punathil (@gireeshpunathil) (TSC): https://github.com/nodejs/node/pull/35588#pullrequestreview-521132470 ✔ - Rich Trott (@Trott) (TSC): https://github.com/nodejs/node/pull/35588#pullrequestreview-521182943 -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/master up to date... From https://github.com/nodejs/node * branch master -> FETCH_HEAD ✔ origin/master is now up-to-date - Downloading patch for 35588 From https://github.com/nodejs/node * branch refs/pull/35588/merge -> FETCH_HEAD ✔ Fetched commits as eb24573987b2..93e76bbffc44 -------------------------------------------------------------------------------- Auto-merging doc/api/process.md [master cb6ff981e5] doc: add new wordings to the API description Author: Pooja D.P Date: Sat Oct 10 22:13:10 2020 +0400 1 file changed, 2 insertions(+), 1 deletion(-) Auto-merging doc/api/process.md [master 8f149806ec] doc: removed trailing whitespaces Author: Pooja D.P Date: Sun Oct 11 00:01:11 2020 +0400 1 file changed, 1 insertion(+), 1 deletion(-) Auto-merging doc/api/process.md [master 174e4feefe] fixup: address review comments Author: Pooja D.P Date: Wed Oct 28 08:54:56 2020 +0400 1 file changed, 2 insertions(+), 2 deletions(-) ✔ Patches applied There are 3 commits in the PR. Attempting autorebase. Rebasing (2/6) Commit Queue action: https://github.com/nodejs/node/actions/runs/347440105 |
PR-URL: #35588 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]>
landed in 2b985a2 |
PR-URL: #35588 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]>
This api does not alter the behavior of diagnostic report configured on uncaught exceptions. This is deemed as a bug. Honor this API. Refs: #35588 PR-URL: #35595 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Richard Lau <[email protected]>
PR-URL: #35588 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]>
PR-URL: #35588 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]>
PR-URL: #35588 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]>
This api does not alter the behavior of diagnostic report configured on uncaught exceptions. This is deemed as a bug. Honor this API. Refs: nodejs#35588 PR-URL: nodejs#35595 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Richard Lau <[email protected]>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes