message: Don't report errors with file or line.
diff: @@ -165,16 +165,6 @@ class Client {
  return promise;
  }
  - private wrapArguments(args: any[]) {
  - for (let i in args) {
  - let arg = args[i];
  - if (typeof arg === 'function') {
  - args[i] = this.wrap(arg);
  - }
  - }
  - return args;
  - }
  -
  wrap(fn): FunctionWrapper {
  if (fn.__airbrake__) {
  return fn;
  @@ -205,6 +195,16 @@ class Client {
  return airbrakeWrapper;
  }
  + private wrapArguments(args: any[]) {
  + for (let i in args) {
  + let arg = args[i];
  + if (typeof arg === 'function') {
  + args[i] = this.wrap(arg);
  + }
  + }
  + return args;
  + }
  +
  call(fn) {
  let wrapper = this.wrap(fn);
  return wrapper.apply(this, Array.prototype.slice.call(arguments, 1));
  @@ -244,6 +244,11 @@ class Client {
  return;
  }
  + // Ignore errors without file or line.
  + if (!this.file || !this.line) {
  + return;
  + }
  +
  this.notify({error: {
  message: message,
  fileName: filename,
  @@ -317,9 +322,6 @@ class Client {
  let oldSend = proto.send;
  proto.send = function(_data?: any): void {
  let oldFn = this.onreadystatechange;
  - if (oldFn) {
  - oldFn = client.wrap(oldFn);
  - }
  this.onreadystatechange = function(_ev: Event): any {
  if (this.__state && this.readyState === 4) {
  @@ -330,13 +332,6 @@ class Client {
  }
  };
  - const events = ['onload', 'onerror', 'onprogress'];
  - for (let event of events) {
  - if (typeof this[event] === 'function') {
  - this[event] = client.wrap(this[event]);
  - }
  - }
  -
  (this as XMLHttpRequestWithState).__state.start = new Date();
  return oldSend.apply(this, arguments);
  };
  