| |||||||||
SummarySets the private data for a context. | |||||||||
Syntaxvoid JS_SetContextPrivate(JSContext *cx, void *data);
| |||||||||
DescriptionJS_SetContextPrivate sets the private data pointer for a specified JSContext , cx .Only a pointer to data is stored with the context. The data pointer is converted to a jsval for storage purposes. You must free this pointer in your finalization code if you allocated storage for it. It is up to your application to maintain the actual data.
| |||||||||
See Also
|