-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
node-api: use WriteV2 in napi_get_value_string_utf16 #58165
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
Review requested:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #58165 +/- ##
==========================================
+ Coverage 90.17% 90.23% +0.05%
==========================================
Files 630 633 +3
Lines 186503 186807 +304
Branches 36614 36665 +51
==========================================
+ Hits 168187 168565 +378
+ Misses 11124 11041 -83
- Partials 7192 7201 +9
🚀 New features to boost your workflow:
|
Could you also replace the other deprecated |
Since `String::Write()` is deprecated, use `String::Write2()` instead. That requires us to compute the correct number of characters ahead of time but removes the need for dealing with the return value.
86f6bee
to
da6a60e
Compare
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
Since
String::Write()
is deprecated, useString::Write2()
instead. That requires us to compute the correct number of characters ahead of time but removes the need for dealing with the return value.