function fixStack(stackTrace, error) {
  if (stackTrace) {
    error.stack += '\n  (event loop)\n' + stackTrace.substr(stackTrace.indexOf("\n") + 1);
  }
  return error;
}
function fixStack(stackTrace, error) {
  if (stackTrace) {
    error.stack += '\n  (event loop)\n' + stackTrace.substr(stackTrace.indexOf("\n") + 1);
  }
  return error;
}
function fixStack ( stackTrace , error ) { if ( stackTrace ) { error . stack += '\n  (event loop)\n' + stackTrace . substr ( stackTrace . indexOf ( "\n" ) + 1 ) ; } return error ; }
Appends the original stack trace to the error after a tick of the event loop
Appends the original stack trace to the error after a tick of the event loop