microsoft / Chakra-Samples

Repository for Chakra JavaScript engine related samples.
MIT License
216 stars 84 forks source link

JsStringToPointer is undefined on OSX platform #38

Closed Kureev closed 7 years ago

Kureev commented 8 years ago

Hello,

I'm porting a hosting example to OSX platform. Seems that JsStringToPointer function hasn't been ported yet. Can I help you porting it? Where should I start?

Kureev commented 8 years ago

After researching this issue a little bit, I figured out that after https://github.com/Microsoft/ChakraCore/pull/766 it's possible to use it as JsStringToPointerUtf8Copy. Hope this helps someone.

Should I create a PR to add it to documentation (in ChakraCore repo)?

obastemur commented 8 years ago

@Kureev we are still experimenting with that new API. We would really appreciate a PR to our wiki repository yet please add a note that the Utf8 marked API are experimental.

liminzhu commented 7 years ago

JsCopyString would be the API.

liminzhu commented 7 years ago

Close as the question seems to be answered.