Move performance-critical code out of try/catch block and into a named function, gaining a minor perf improvement on v8. For higher fruit, we'll need to do something fancy to get rid of try/catch, which simply may not be worthwhile.