It's not clear to me when these properties are used, since the `throw error` line below seems to execute before `window.onerror` could fire.