error method
The error()
method of the
ReadableStreamDefaultController interface causes any future interactions
with the associated stream to error.
Note: The
error()
method can be called more than once, and can be called when the stream is not readable.
Implementation
external void error([JSAny? e]);