From 4764c52b5b35961ef3c617a2c137b151b8c0bcf1 Mon Sep 17 00:00:00 2001 From: palkan Date: Tue, 25 Nov 2014 16:40:27 +0400 Subject: [PATCH] fix passing null as Promise's onFullfilled (which is broken in Chrome 32) --- src/core/evaluator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/evaluator.js b/src/core/evaluator.js index 753d248c8..8d7c4735c 100644 --- a/src/core/evaluator.js +++ b/src/core/evaluator.js @@ -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]); });