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