Description
I'm developing a hybrid app (everything is loaded off the file system except our data calls), and it's pretty complex with several thousand lines of JS.
Using;
//cdn.ravenjs.com/1.1.16/jquery,native/raven.min.js
I am instantiating raven-js using;
Raven.config( DSN, options ).install();
...where my options are a few tags. Everything works fine, it logs to the backend great.
I am not handling window.onerror myself, I am leaving everything up to raven-js for now.
I am throwing errors in two ways to test, manually with a DIV with;
onclick="try{var v=new Jasdfasd;}catch(e){Raven.captureException(e);};"
And in one of the routes for my app with;
var v = new DoesntExistRavenTest();
If I use raven-js without the jQuery plugin it logs, it's not very useful as it bubbling up to window.onerror as the docs say, but it works.
With the plugin it always throws this error in raven-js itself
Uncaught TypeError: Expecting a function in instanceof check, but got #<Object> VM12497:6104
O.captureException VM12497:6104
d VM12497:6104
n.event.dispatch (index):13
r.handle
"n" & "r" are in my minified jQuery source (v 2.1.1 although I tried it with 1.11 as well, no diff)
"O.captureException" is in the minified raven-js source.