code: function(exc) {
      var frames = [];
  
      if (exc.arguments && exc.stack) {
        frames = this.parseChromeExc(exc);
      } else if (exc.stack) {
        if (exc.stack.indexOf('@') === -1) {
          frames = this.parseChromeExc(exc);
        } else {
          frames = this.parseFirefoxOrSafariExc(exc);
        }
      } else {
        var lineno = parseInt(typeof exc.line !== 'undefined' ? exc.line : exc.lineNumber, 10) || 0;
        var fileUrl = sanitizeUrl((typeof exc.sourceURL !== 'undefined' ? exc.sourceURL : exc.fileName) || null);
  
        frames = [{filename: fileUrl, lineno: lineno}];
      }
      this.frames = frames.reverse();
    }
docs: /*
  Derived work from raven-js at https://github.com/lincolnloop/raven-js