error method

void error([
  1. JSAny? reason
])

The error() method of the TransformStreamDefaultController interface errors both sides of the stream. Any further interactions with it will fail with the given error message, and any chunks in the queue will be discarded.

Implementation

external void error([JSAny? reason]);