window.onerror not working in chrome
google-chrome, onerror, window
Solution
The `window.onerror` works in Chrome (see jsfiddle - http://jsfiddle.net/PWSDF/), but apparently not in the console - which makes some sense.
Problem
I am trying to add an onerror event to my website. ``` window.onerror = function() { alert("an error"); } ``` But all I receive is: ``` notThere(); ReferenceError: notThere is not defined ``` What am I missing? Browser: Chrome 26.0.1410.64 m Steps to reproduce: - add the code to the console. - add notThere() to the console