-
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
trace_events: move SetupTraceCategoryState into node_trace_events.cc #25128
Conversation
It makes more sense to put it in `internalBinding('trace_events')` instead of in the bootstrapper object.
lib/internal/bootstrap/node.js
Outdated
const { traceCategoryState } = internalBinding('trace_events'); | ||
const { | ||
traceCategoryState, | ||
setupTraceCategoryState |
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.
Could you use another name (avoid that of the current executing function)?
@targos Thanks for catching that, I updated the internal function name to |
It makes more sense to put it in `internalBinding('trace_events')` instead of in the bootstrapper object. PR-URL: #25128 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Landed in 70f2328, thanks! |
This doesn't land cleanly on v11.x, should it be backported? |
It makes more sense to put it in `internalBinding('trace_events')` instead of in the bootstrapper object. PR-URL: nodejs#25128 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This applies cleanly now. |
It makes more sense to put it in `internalBinding('trace_events')` instead of in the bootstrapper object. PR-URL: #25128 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
It makes more sense to put it in `internalBinding('trace_events')` instead of in the bootstrapper object. PR-URL: nodejs#25128 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
It makes more sense to put it in
internalBinding('trace_events')
instead of in the bootstrapper object.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes