eclipsesource / eclipsesource/tabris-js

Add global error event handler

Open
#1,033 4 comments 0 reactions 1 assignee Claimed by @tbuschto View on GitHub
feature js
Dominant language
JavaScript
Stars
1.4k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

As far as I can tell, there is no way to set the global event handler for [window.onerror](https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror). The following code does nothing:
```
window.onerror = function() {
console.log('Global Error!', arguments.length);
return true;
};
throw new Error('TEST');
```
Would it be possible to add this functionality?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.