pub unsafe extern "C" fn ReadableStreamReaderCancel(
    cx: *mut JSContext,
    reader: Handle<*mut JSObject>,
    reason: Handle<Value>
) -> bool
Expand description

C++ equivalent of reader.cancel(reason) (both https://streams.spec.whatwg.org/#default-reader-cancel and https://streams.spec.whatwg.org/#byob-reader-cancel).

reader must be a stream reader created using JS::ReadableStreamGetReader or an unwrappable wrapper for one. (This function is meant to support using C++ to read from streams. It’s not meant to allow C++ code to operate on readers created by scripts.)