code: function emittedError(err) {
  	// jshint validthis:true
  	// If operation in progress, reject its promise
  	const state = getState(this);
  	if (state) {
  		clearState(this);
  		return state.reject(err);
  	}
  
  	// Store error to be returned on next call to
  	// `.readEntry()`, `.close()` or `.openReadStream()`.
  	if (!getError(this)) setError(this, err);
  }
docs: /*
  Error event handler