-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
os: rename functions wrapped via hideStackFrames()
#58159
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
base: main
Are you sure you want to change the base?
Conversation
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.
Please let's run benchmarks before these changes, so we know there aren't any regressions.
const getHostname = getCheckedFunction(_getHostname); | ||
const getInterfaceAddresses = getCheckedFunction(_getInterfaceAddresses); | ||
const getUptime = getCheckedFunction(_getUptime); | ||
const getHomeDirectory = getCheckedFunction(_getHomeDirectory, 'getHomeDirectory'); |
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.
Can we run benchmarks on these changes?
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #58159 +/- ##
==========================================
- Coverage 90.17% 90.17% -0.01%
==========================================
Files 630 630
Lines 186503 186506 +3
Branches 36618 36615 -3
==========================================
- Hits 168188 168179 -9
- Misses 11120 11125 +5
- Partials 7195 7202 +7
🚀 New features to boost your workflow:
|
The internal
hideStackFrames()
returns wrapper function with.name === 'wrappedFn'
(and.length === 0
which aligns with desired value), and these wrappers are exported directly to userspace. Let's give them more meaningful names.