Merge pull request #5507 from palkan/fix-promise-null
Fix passing null as onFullfilled (which is broken in Chrome(-ium) 32)
This commit is contained in:
commit
8a6cc44144
@ -253,7 +253,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
||||
var imgData = imageObj.createImageData(/* forceRGBA = */ false);
|
||||
self.handler.send('obj', [objId, self.pageIndex, 'Image', imgData],
|
||||
[imgData.data.buffer]);
|
||||
}).then(null, function (reason) {
|
||||
}).then(undefined, function (reason) {
|
||||
warn('Unable to decode image: ' + reason);
|
||||
self.handler.send('obj', [objId, self.pageIndex, 'Image', null]);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user