Test that syntax error will be reported to the window.onerror handler. Bug 8519.

Main frame window.onerror: SyntaxError: Parse error at window-onerror6.html:22

