Use no error handler
Use window.onerror
Use try / catch block
Use protected entry points
Use window.addEventListener
Example error message template
Throw basic error
Throw string
Throw error with native frame
Throw async error
Named anonymous function
Un-named anonymous function
Function with displayName
Inner function assigned to variable
Catch and rethrow error
Throw error from inline script (no sourceURL)
Throw error from inline script (with sourceURL)
Throw error from eval
Throw error from eval (with sourceURL)
Error from promise
Error from rejected promise
Error from web worker
Error in shared web worker
Error in service worker
Error in service worker installation
Error handler output: