-
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
sqlite: improve error handling using MaybeLocal #55571
sqlite: improve error handling using MaybeLocal #55571
Conversation
As per James' suggestion, consistently use MaybeLocal and avoid Check() and ToLocalChecked() entirely. Refs: nodejs#54687
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #55571 +/- ##
=======================================
Coverage 88.42% 88.42%
=======================================
Files 654 654
Lines 187662 187681 +19
Branches 36118 36130 +12
=======================================
+ Hits 165945 165962 +17
+ Misses 14955 14952 -3
- Partials 6762 6767 +5
|
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.
FWIW, I think I copied this from somewhere else in the codebase, so there are probably other places where this change could be applied.
This comment was marked as outdated.
This comment was marked as outdated.
Landed in bdc2662 |
As per @jasnell's suggestion, consistently use
MaybeLocal
and avoidCheck()
andToLocalChecked()
entirely.