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:
Yury Delendik 2014-12-05 08:36:46 -08:00
commit 8a6cc44144

View File

@ -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]);
});