Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Should not panic when older browsers do not provide error objects for onerror() #9

Closed
dennisgl opened this issue Nov 13, 2017 · 0 comments · Fixed by #10
Closed

Should not panic when older browsers do not provide error objects for onerror() #9

dennisgl opened this issue Nov 13, 2017 · 0 comments · Fixed by #10
Assignees

Comments

@dennisgl
Copy link
Contributor

Ref: https://blog.sentry.io/2016/01/04/client-javascript-reporting-window-onerror.html

in server.js:

onerror = function(m,s,l,c,e) {
  if (e.__handled) return;

For some clients (e.g., Safari 9.x) the 5th param e - the error object does not present. We should at least not throw in the meanwhile.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant