eclipsesource / eclipsesource/tabris-js
Add global error event handler
Open
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
Assessment
This issue has not been assessed yet.