2011年7月20日 - See: How to trigger script.onerror in Internet Explorer? B: It will fire on syntax errors as well.
stackoverflow.com