Test that uncaught exceptions will be reported to the window.onerror handler. Bug 8519.