code: function patchMakeConstructor() {
    const func = errors.makeConstructor;
    function makeConstructorHook() {
      func.apply(null, arguments);
      patchError(arguments[0]);
    }
    errors.makeConstructor = makeConstructorHook;
  }
docs: Adds an hook to the makeConstructor method,