We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2266269 commit fd7fff2Copy full SHA for fd7fff2
lib/transports/polling-xhr.js
@@ -257,7 +257,7 @@ Request.prototype.create = function () {
257
// make sure the `error` event handler that's user-set
258
// does not throw in the same tick and gets caught here
259
setTimeout(function () {
260
- self.onError(xhr.status);
+ self.onError(typeof xhr.status === 'number' ? xhr.status : 0);
261
}, 0);
262
}
263
};
0 commit comments