docs: function makeInstance(constructor, constructorOpt, args) {
      // pass args to the constructor
      function F() { // eslint-disable-line require-jsdoc
          return constructor.apply(this, args);
      }
      F.prototype = constructor.prototype;
  
      // new up an instance, and capture stack trace from the
      // passed in constructorOpt
      var errInstance = new F();
      Error.captureStackTrace(errInstance, constructorOpt);
  
      // return the error instance
      return errInstance;
  }