bdkjones/CodeKit — Issue #118: Crashing on jshint fatal error
Author: firsara
Created: 2011-12-14 15:25:01+00:00
State: open

I've also postet this to the actual jshint-project on github (issue #380):

The following line breaks the jshint parser:

var text = 'test';
text = text.replace(/====/g, '==='); // kills jshint

Sure, one could avoid it, writing 'new RegExp('====', 'g', '===');'!

Not sure if it is possible, but maybe you are able to catch such kind of errors and keep codekit alive, I was wondering all the time why my script broke the parser until i figured out the apporpriate line!