-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
test: add fast api tests for getLibuvNow() #55905
base: main
Are you sure you want to change the base?
Conversation
@targos I'm getting a runtime error with this. Am I missing something?
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #55905 +/- ##
=======================================
Coverage 88.49% 88.50%
=======================================
Files 653 653
Lines 187735 187735
Branches 36181 36185 +4
=======================================
+ Hits 166141 166153 +12
+ Misses 14819 14810 -9
+ Partials 6775 6772 -3
|
@@ -1,4 +1,7 @@ | |||
#include "timers.h" | |||
|
|||
#include <node_debug.h> |
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.
#include <node_debug.h> | |
#include "node_debug.h" |
I think it's because you can't directly optimize a native function. You need to wrap it in a JS function and optimize that. |
Adds a V8 fast api test for
binding.getLibuvNow()
function.cc @nodejs/cpp-reviewers