Test that window.onerror is called on window object. Bug 8519.

Main frame window.onerror: 2010 at window-onerror8.html, line: 24, column: 11
PASSED: this === window

