function checkInitialState() {
      const state = ReadableStreamGetState(readable);

      // Both streams can be errored or closed. To perform the right action the
      // order of the checks must match the standard.
      if (state === STATE_ERRORED) {
        readableError(readable[_storedError]);
        return false;
      }

      if (binding.isWritableStreamErrored(dest)) {
        writableError(binding.getWritableStreamStoredError(dest));
        return false;
      }

      if (state === STATE_CLOSED) {
        readableClosed();
        return false;
      }

      if (binding.isWritableStreamClosingOrClosed(dest)) {
        writableStartedClosed();
        return false;
      }

      return true;
    }
// necessary. Returns true if piping can continue.
necessary. Returns true if piping can continue.
necessary . Returns true if piping can continue .
function checkInitialState() {
      const state = ReadableStreamGetState(readable);
      if (state === STATE_ERRORED) {
        readableError(readable[_storedError]);
        return false;
      }
      if (binding.isWritableStreamErrored(dest)) {
        writableError(binding.getWritableStreamStoredError(dest));
        return false;
      }
      if (state === STATE_CLOSED) {
        readableClosed();
        return false;
      }
      if (binding.isWritableStreamClosingOrClosed(dest)) {
        writableStartedClosed();
        return false;
      }
      return true;
    }
function checkInitialState ( ) { const state = ReadableStreamGetState ( readable ) ; if ( state === STATE_ERRORED ) { readableError ( readable [ _storedError ] ) ; return false ; } if ( binding . isWritableStreamErrored ( dest ) ) { writableError ( binding . getWritableStreamStoredError ( dest ) ) ; return false ; } if ( state === STATE_CLOSED ) { readableClosed ( ) ; return false ; } if ( binding . isWritableStreamClosingOrClosed ( dest ) ) { writableStartedClosed ( ) ; return false ; } return true ; }
necessary.
necessary .
// Both streams can be errored or closed. To perform the right action the // order of the checks must match the standard.