Function chakracore_sys::JsCreateExternalObject [] [src]

pub unsafe extern "system" fn JsCreateExternalObject(
    data: *mut c_void,
    finalizeCallback: JsFinalizeCallback,
    object: *mut JsValueRef
) -> JsErrorCode

Creates a new object that stores some external data. Requires an active script context. External data that the object will represent. May be null. A callback for when the object is finalized. May be null. The new object. The code JsNoError if the operation succeeded, a failure code otherwise.