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

Add comment about string encoding. #32

Merged
merged 1 commit into from
Jan 11, 2017

Conversation

fhinkel
Copy link
Member

@fhinkel fhinkel commented Dec 12, 2016

Affected core subsystem(s)

JS VM Api

Description of change

In V8, strings are utf16. Would it make sense to have a napi_get_string_utf16? Or is conversion to utf8 a performance hit we don't mind?

@fhinkel fhinkel mentioned this pull request Dec 12, 2016
2 tasks
@bnoordhuis
Copy link
Member

Sounds sensible to me. ChakraCore, JavaScriptCore and Spidermonkey all seem to support it and at least in Spidermonkey it's the canonical (i.e. fast) representation.

mhdawson

This comment was marked as off-topic.

@aruneshchandra aruneshchandra merged commit d21d475 into nodejs:api-prototype-6.2.0 Jan 11, 2017
jasongin pushed a commit to jasongin/abi-stable-node that referenced this pull request Jan 26, 2017
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 this pull request may close these issues.

4 participants