Skip to main content
Version: 1.2.0

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.