-
Notifications
You must be signed in to change notification settings - Fork 30k
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
doc: edit Error.captureStackTrace html comment #12962
Conversation
doc/api/errors.md
Outdated
@@ -238,7 +238,7 @@ function MyError() { | |||
|
|||
// Without passing MyError to captureStackTrace, the MyError | |||
// frame would show up in the .stack property. By passing | |||
// the constructor, we omit that frame and all frames above it. | |||
// the constructor, we omit that frame, and retain all frames above it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes the meaning of this sentence now, you would want to replace “above” with “below” if you talk about the retained frames
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@addaleax Sounds good, will update the PR. Thank you
Edit to the comment in the stack trace capture, highlighting the use of the constructorOpt argument in errors.md Ref: #12289
@addaleax All done. I updated the PR, replacing "above" with "below". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Dismissed my review. In the context of the whole text, my comment is less critical. |
Landed in ef71824, thanks for the PR! |
Edit to the comment in the stack trace capture, highlighting the use of the constructorOpt argument in errors.md Fixes: #12289 PR-URL: #12962 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben.bridgewater@fintura.de>
Edit to the comment in the stack trace capture, highlighting the use of the constructorOpt argument in errors.md Fixes: #12289 PR-URL: #12962 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben.bridgewater@fintura.de>
Edit to the comment in the stack trace capture, highlighting the use of
the constructorOpt argument in errors.md
Ref: #12289
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)