Skip to content
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

Document string lifetimes #304

Closed
gabrielschulhof opened this issue Apr 28, 2018 · 0 comments
Closed

Document string lifetimes #304

gabrielschulhof opened this issue Apr 28, 2018 · 0 comments
Assignees

Comments

@gabrielschulhof
Copy link
Collaborator

Add a blurb to the documentation mentioning that strings are always copied into the engine.

Re: nodejs/node#14256

@gabrielschulhof gabrielschulhof self-assigned this Apr 30, 2018
gabrielschulhof pushed a commit to gabrielschulhof/node that referenced this issue Apr 30, 2018
Mention that a copy is made of the native string by the
napi_create_string_* APIs.

Fixes: nodejs/abi-stable-node#304
MylesBorins pushed a commit to nodejs/node that referenced this issue May 4, 2018
Mention that a copy is made of the native string by the
napi_create_string_* APIs.

Fixes: nodejs/abi-stable-node#304
PR-URL: #20425
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant