perf($compile): wrap try/catch of collect comment directives into a function to avoid V8 deopt
perf($compile): wrap try/catch of collect comment directives into a function to avoid V8 deopt

Closes #14848

Real-Currents/angular.js,Real-Currents/angular.js,Real-Currents/angular.js,Real-Currents/angular.js