Skip to main content
Version: 3.27.2

WritableStreamDefaultWriter()

The WritableStreamDefaultWriter() constructor creates a new WritableStreamDefaultWriter object instance.

Syntax

new WritableStreamDefaultWriter(stream)

Parameters

  • stream
    • : The WritableStream to be written to.

Return value

An instance of the WritableStreamDefaultWriter object.

Exceptions

  • TypeError
    • : The provided stream value is not a WritableStream, or it is locked to another writer already.