-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
add judgment on global.crypto #23
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #23 +/- ##
==========================================
+ Coverage 98.47% 98.65% +0.18%
==========================================
Files 1 1
Lines 3011 2604 -407
==========================================
- Hits 2965 2569 -396
+ Misses 35 24 -11
Partials 11 11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
src/index.js
Outdated
randomFillSync(b); | ||
} | ||
}; | ||
} | ||
global.performance = { |
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.
I suggest to do this also for global.performance
. Node.js already has performance.now()
, so there should be no need to patch it in most cases.
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.
Good! Thanks for your advice!
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, thanks for your contribution.
PR Details
Fix #22
Description
Related Issue
fix #22
Motivation and Context
How Has This Been Tested
Types of changes
Checklist