This test should trigger 'window.onerror', and successfully handle the error. On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". window.onerror: "Uncaught SyntaxError: Unexpected end of input" at window-onerror-04.html (Line: 1, Column: 3) Stack Trace: SyntaxError: Unexpected end of input at window-onerror-04.html:14:9 Returning 'true': the error should not be reported in the console as an unhandled exception. PASS successfullyParsed is true TEST COMPLETE