Dear,
What is the safest way to convert a 'WTF::String' to 'const char *' and 'v8::String::Utf8Value' to 'WTF::String'?
I need to convert a Javascript source code which is a WTF::String to a const char * which is to be passed to the v8::String::NewFromUtf8.
The result after evaluating the script is a v8::String::Utf8Value which needs to be converted back to WTF::String.
For performing a conversion from 'WTF::String' to 'const char *', I am using the .latin().data() and .ascii.data() functions.
Any help/hint towards some functions will be helpful.