Show fallback bar on unhandled rejections

This commit is contained in:
Yury Delendik 2013-06-21 19:13:26 -05:00
parent ce218d021f
commit 23ea9d879d

View File

@ -748,8 +748,8 @@ var Promise = PDFJS.Promise = (function PromiseClosure() {
var now = Date.now();
for (var i = 0; i < this.unhandledRejections.length; i++) {
if (now - this.unhandledRejections[i].time > REJECTION_TIMEOUT) {
console.error('Unhandled rejection: ' +
this.unhandledRejections[i].promise._value);
warn('Unhandled rejection: ' +
this.unhandledRejections[i].promise._value);
this.unhandledRejections.splice(i);
i--;
}