whole_func_string: function WritableStreamDefaultControllerError(controller, e) {
    const stream = controller._controlledWritableStream;
  
    assert(stream._state === 'writable' || stream._state === 'closing');
  
    WritableStreamError(stream, e);
  
    controller._queue = [];
  }
func_code_string: function WritableStreamDefaultControllerError(controller, e) {
    const stream = controller._controlledWritableStream;
  
    assert(stream._state === 'writable' || stream._state === 'closing');
  
    WritableStreamError(stream, e);
  
    controller._queue = [];
  }
func_documentation_string: A client of WritableStreamDefaultController may use these functions directly to bypass state check.