Skip to content

node-api: use WriteV2 in napi_get_value_string_utf16#58165

Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom
tniessen:napi_get_value_string_utf16-writev2
May 16, 2025
Merged

node-api: use WriteV2 in napi_get_value_string_utf16#58165
nodejs-github-bot merged 1 commit intonodejs:mainfrom
tniessen:napi_get_value_string_utf16-writev2

Conversation

@tniessen
Copy link
Member

@tniessen tniessen commented May 4, 2025

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.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. needs-ci PRs that need a full CI run. node-api Issues and PRs related to the Node-API.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

8 participants