Function chakracore_sys::JsCreatePromise [] [src]

pub unsafe extern "system" fn JsCreatePromise(
    promise: *mut JsValueRef,
    resolveFunction: *mut JsValueRef,
    rejectFunction: *mut JsValueRef
) -> JsErrorCode

Creates a new JavaScript Promise object. Requires an active script context. The new Promise object. The function called to resolve the created Promise object. The function called to reject the created Promise object. The code JsNoError if the operation succeeded, a failure code otherwise.