Type Definition js::jsapi::StructuredCloneErrorOp [] [src]

type StructuredCloneErrorOp = Option<unsafe extern "C" fn(cx: *mut JSContext, errorid: u32)>;

This is called when JS_WriteStructuredClone is given an invalid transferable. To follow HTML5, the application must throw a DATA_CLONE_ERR DOMException with error set to one of the JS_SCERR_* values.