Function mozjs_sys::jsapi::JS::NewReadableDefaultStreamObject
source · pub unsafe extern "C" fn NewReadableDefaultStreamObject(
cx: *mut JSContext,
underlyingSource: HandleObject,
size: HandleFunction,
highWaterMark: f64,
proto: HandleObject,
) -> *mut JSObject
Expand description
Returns a new instance of the ReadableStream builtin class in the current compartment, configured as a default stream. If a |proto| is passed, that gets set as the instance’s [[Prototype]] instead of the original value of |ReadableStream.prototype|.