fix passing null as Promise's onFullfilled (which is broken in Chrome 32)

This commit is contained in:
palkan 2014-11-25 16:40:27 +04:00
parent dc5961d969
commit 4764c52b5b

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