JS Error Logger module
The Javsscript Error Logger module helps developers trace and debug client-side JS errors. Turn your site's whole audience into happy, willing test subjects capable of supplying a useful bug report!
GiantRobot has today released the first DEV version of a Drupal5 module to trap JS errors on client machines and record them, either to your watchdog or (!!!) via email.