nl_tokens: Finds a crashed thread by iterating all threads and checking whether they ve crashed . If they have we short circuit and return the thread . Otherwise we return the crashed_thread entry .
pl_tokens: function get_crash_thread ( report ) { var crash = report [ 'crash' ] || { } ; var threads = crash [ 'threads' ] || [ ] ; var thread = threads . find ( function ( thread ) { return ! ! thread [ 'crashed' ] ; } ) ; return <mask> || crash [ 'crashed_thread' ] ; }