jshint
Test for case where next'ing functions were not handled correctly