pub unsafe extern "C" fn JSObjectSetPrivate(
object: JSObjectRef,
data: *mut c_void,
) -> bool
Expand description
Sets a pointer to private data on an object.
object
: TheJSObjectRef
whose private data you want to set.data
: Avoid*
to set as the object’s private data.
Returns true
if object can store private data, otherwise false
.
The default object class does not allocate storage for private data.
Only objects created with a non-NULL
JSClassRef
can store private data.