 = JSON.stringify({
        'errorObj': stringifyError
      });
    }

    var xhrData = {
      report_context: JSON.stringify(reportContext),
      report_data: reportData,
    };

    _logToServer(xhrData);
  }

  var error = {};
  error.message = err.message || err.description;
  error.lineNumber = err.lineno || err.lineNumber || err.line;
  error.columnNumber = err.colno ||  err.columnNumber || err.column;
  error.stack = err.stack || err.stacktrace ||
    (err.error && (err.error.stack || err.error.s