-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
console: remove trace frame #27159
console: remove trace frame #27159
Conversation
The own function's frame was removed originally. This restors that behavior. Fixes: nodejs#27134
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.
Commit message has a typo (restors
).
@@ -330,13 +330,13 @@ const consoleMethods = { | |||
trace(kTraceInstant, kTraceConsoleCategory, `time::${label}`, 0); | |||
}, | |||
|
|||
trace(...args) { | |||
trace: function trace(...args) { |
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.
Is this strictly needed? I thought the shorthand notation had the same behavior.
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.
With the shorthand notation, the function would be called as obj.property
. It is not possible to access the function itself by only using the property name. That is only possible inside the old function foo
type.
It would also be possible if this would not be a property but a variable.
Landed in 091902a 🎉 |
The own function's frame was removed originally. This restors that behavior. Fixes: nodejs#27134 PR-URL: nodejs#27159 Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
The own function's frame was removed originally. This restors that
behavior.
Fixes: #27134
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes