WritableStreamDefaultWriter()
The WritableStreamDefaultWriter()
constructor creates a new WritableStreamDefaultWriter
object instance.
Syntax
new WritableStreamDefaultWriter(stream)
Parameters
stream
- : The
WritableStream
to be written to.
- : The
Return value
An instance of the WritableStreamDefaultWriter
object.
Exceptions
TypeError
- : The provided
stream
value is not aWritableStream
, or it is locked to another writer already.
- : The provided