JSLint error: Expected 'ignore' and instead saw 'ex'
I use JSLint all the time, but just today, I came across an error that I've never seen before. With the following code, I got the error shown below: try { document.execCommand('BackgroundImageCache', false, true); } catch (ex) {} Error: Expected 'ignore' and instead saw 'ex'. } catch (ex) {} So I changed my code to the following, and the error went away: try { document.execCommand('BackgroundImageCache', false, true); } catch (ignore) {} I can't find any explanation on the Internet regarding why this would fix the error. Does anyone know what's up or why this fixed the problem? Thank you.