function createMochaInstanceAlreadyDisposedError(
    message,
    cleanReferencesAfterRun,
    instance
  ) {
    var err = new Error(message);
    err.code = constants$4.INSTANCE_ALREADY_DISPOSED;
    err.cleanReferencesAfterRun = cleanReferencesAfterRun;
    err.instance = instance;
    return err;
  }
Creates an error object to be thrown when a mocha object's `run` method is executed while it is already disposed.
@param {string} message The error message to be displayed.
@param {boolean} cleanReferencesAfterRun the value of `cleanReferencesAfterRun`
@param {Mocha} instance the mocha instance that throw this error
@static