-
-
Notifications
You must be signed in to change notification settings - Fork 32k
test: add fast api tests for getLibuvNow() #55905
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
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% 87.96% -0.54%
==========================================
Files 653 656 +3
Lines 187735 188391 +656
Branches 36181 35976 -205
==========================================
- Hits 166141 165710 -431
- Misses 14819 15846 +1027
- Partials 6775 6835 +60
🚀 New features to boost your workflow:
|
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. |
4b7036b
to
d30d54f
Compare
Thanks. I updated the pull-request and you're indeed correct. It fixed the crash. |
d30d54f
to
2081338
Compare
@targos any idea why this test is failing on arm-debug? |
It means that the fast API is not called during the test. Have you not tried it locally with debug mode ? |
Adds a V8 fast api test for
binding.getLibuvNow()
function.cc @nodejs/cpp-reviewers