The error() method of the TransformStreamDefaultController interface errors both sides of the stream.
error()
MDN Reference