pub unsafe extern "C" fn ReadableStreamGetReader(
    cx: *mut JSContext,
    stream: Handle<*mut JSObject>,
    mode: ReadableStreamReaderMode
) -> *mut JSObject
Expand description

Creates a reader of the type specified by the mode option and locks the stream to the new reader.

Asserts that |stream| is a ReadableStream object or an unwrappable wrapper for one. The returned object will always be created in the current cx compartment.