You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following alerts with jQuery vanilla, and errors out when jQuery gets wrapped by Raven with a Uncaught TypeError: (intermediate value).foo is not a function(…).
var x = function() {};
x.prototype.foo = function() { alert("hi"); };
var d = $.Deferred();
d.then(function(z) { (new z).foo(); });
d.resolve(x);
This bit us in production, and we've had to disable Raven until this is fixed.
For more context, this was causing real problems for us because we async load react components. If you do a deferred.resolve(SomeComponent), then try to render SomeComponent later, it won't have SomeComponent.prototype.render defined.
Activity
Make Raven.wrap respect prototype chain
jlfwong commentedon Oct 31, 2015
For more context, this was causing real problems for us because we async load react components. If you do a
deferred.resolve(SomeComponent), then try to renderSomeComponentlater, it won't haveSomeComponent.prototype.renderdefined.mattrobenolt commentedon Nov 4, 2015
This was fixed with #402 and will be in 1.3.
ref: Enable http instrumentation by default (#401)