[Pkg-javascript-commits] [pdf.js] 68/139: fix passing null as Promise's onFullfilled (which is broken in Chrome 32)
David Prévot
taffit at moszumanska.debian.org
Fri Jan 9 21:18:28 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 4764c52b5b35961ef3c617a2c137b151b8c0bcf1
Author: palkan <dementiev at webils.ru>
Date: Tue Nov 25 16:40:27 2014 +0400
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 753d248..8d7c473 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]);
});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list