pub unsafe extern "C" fn NewReadableDefaultStreamObject(
cx: *mut JSContext,
underlyingSource: Handle<*mut JSObject>,
size: Handle<*mut JSFunction>,
highWaterMark: f64,
proto: Handle<*mut JSObject>,
) -> *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|.