code: function onError (fn) {
    callbacks.push(fn);
    if (window.onerror != handler) {
      callbacks.push(window.onerror);
      window.onerror = handler;
    }
  }
docs: Call a `fn` on `window.onerror`.
  
  @param {Function} fn