I selected Error from my method, from which I need an early exit, as shown below:
// No route found if(null === nextRoute) { throw new Error('BAD_ROUTE'); }
I need to put a return; after my throw ? At the moment this works for me. If this is superfluous, I would prefer not to embed it, but I cannot be sure what different browsers can do.
javascript exception error-handling
Matthew Sep 26 '14 at 19:44 2014-09-26 19:44
source share