- Dangling commas, that cause IE to break
- Stray instances of console.log, used in debugging that cause IE to break
The easiest way to find these is often with a regular expression. For the first, here is a reasonable regex:
For the second, here is another regex (thanks to http://stackoverflow.com/questions/5374843/regex-to-find-an-uncommented-println):
Both are quite naive – they give some false positives. But it’s a start. If anyone wants to suggest anything better, please use the boxes below.