1 This tests that unhandled exceptions in a worker's onerror handler trigger 'worker.onerror'.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 Page-level worker.onerror handler triggered:
8 PASS errorEvent.message is "Uncaught ReferenceError: foo is not defined"
9 PASS stripURL(errorEvent.filename) is "[blob: URL]"
10 PASS errorEvent.lineno is 7
11 PASS errorEvent.colno is 9
12 PASS errorEvent.error is null
14 Page-level worker.onerror handler triggered:
15 PASS errorEvent.message is "Uncaught ReferenceError: bar is not defined"
16 PASS stripURL(errorEvent.filename) is "[blob: URL]"
17 PASS errorEvent.lineno is 3
18 PASS errorEvent.colno is 13
19 PASS errorEvent.error is null
20 PASS successfullyParsed is true