lib/parsers.js
function getCulprit (frames) {
  if (frames.length === 0) return

  var filename = frames[0].filename
  var fnName = frames[0].function
  for (var n = 0; n < frames.length; n++) {
    if (!frames[n].library_frame) {
      filename = frames[n].filename
      fnName = frames[n].function
      break
    }
  }

  return filename ? fnName + ' (' + filename + ')' : fnName
}
function getCulprit (frames) {
  if (frames.length === 0) return

  var filename = frames[0].filename
  var fnName = frames[0].function
  for (var n = 0; n < frames.length; n++) {
    if (!frames[n].library_frame) {
      filename = frames[n].filename
      fnName = frames[n].function
      break
    }
  }

  return filename ? fnName + ' (' + filename + ')' : fnName
}
function getCulprit ( frames ) { if ( frames . length === 0 ) return var filename = frames [ 0 ] . filename var fnName = frames [ 0 ] . function for ( var n = 0 ; n < frames . length ; n ++ ) { if ( ! frames [ n ] . library_frame ) { filename = frames [ n ] . filename fnName = frames [ n ] . function break } } return filename ? fnName + ' (' + filename + ')' : fnName }
Default `culprit` to the top of the stack or the highest non `library_frame` frame if such exists
Default culprit to the top of the stack or the highest non library_frame frame if such exists