src/vs/base/common/stream.ts/WriteableStreamImpl/flowErrors
class WriteableStreamImpl:	private flowErrors(): void {
		if (this.listeners.error.length > 0) {
			for (const error of this.buffer.error) {
				this.emitError(error);
			}

			this.buffer.error.length = 0;
		}
	}