| |||||||||
SummaryConverts a JS value to a JS string. | |||||||||
SyntaxJSString * JS_ValueToString(JSContext *cx, jsval v);
| |||||||||
DescriptionJS_ValueToString converts a specified JS value, v , to a JS string. The actual conversion is performed by the object's convert operation. JS_ValueToString always returns a pointer to a string. The original value is untouched.
| |||||||||
NotesConverting a JS value to a string subjects the resulting string to garbage collection unless you protect against it using a local root, an object property, or theJS_AddRoot function.
| |||||||||
See Also
|