-
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
doc: fix and modernize code examples in domain.md #11110
Conversation
doc/api/domain.md
Outdated
reqd.add(req); | ||
reqd.add(res); | ||
reqd.on('error', (er) => { | ||
console.error('Error', er, req.url); | ||
console.error(`Error ${er} ${req.url}`); |
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.
Won't this change remove the stack trace?
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.
Oh. Yes. Sorry.
I shall revert these ones. It seems something like Error ${util.format(err)}
will be much worse.
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.
@evanlucas Reverted.
Fixed basing on the previous example.
cc @nodejs/documentation |
@evanlucas Could we proceed? |
@evanlucas @jasnell Could this be landed? |
Yep LGTM. Can you land or would you like me to? Thanks! |
@evanlucas Sorry, I can't) I am not a collaborator) |
Landed in 5a42cd1. Thanks! |
* var -> const * string concatenation -> template strings PR-URL: #11110 Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* var -> const * string concatenation -> template strings PR-URL: nodejs#11110 Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* var -> const * string concatenation -> template strings PR-URL: #11110 Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* var -> const * string concatenation -> template strings PR-URL: #11110 Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* var -> const * string concatenation -> template strings PR-URL: #11110 Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* var -> const * string concatenation -> template strings PR-URL: #11110 Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* var -> const * string concatenation -> template strings PR-URL: #11110 Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Checklist
Affected core subsystem(s)
doc, domain
FWIW, until the sealing of the
domain
's vague fate.