[Pkg-javascript-commits] [pdf.js] 95/210: Fix typo when rejecting Promise in getPage

David Prévot taffit at moszumanska.debian.org
Thu Jun 5 14:21:06 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch upstream
in repository pdf.js.

commit 652dde48da59141a3d8ad7b0c124ae6b4efd19ac
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Wed May 7 23:25:24 2014 +0200

    Fix typo when rejecting Promise in getPage
---
 src/display/api.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/display/api.js b/src/display/api.js
index 977fb8c..e2dce6d 100644
--- a/src/display/api.js
+++ b/src/display/api.js
@@ -1005,7 +1005,7 @@ var WorkerTransport = (function WorkerTransportClosure() {
     getPage: function WorkerTransport_getPage(pageNumber, capability) {
       if (pageNumber <= 0 || pageNumber > this.numPages ||
           (pageNumber|0) !== pageNumber) {
-        return new Promise.reject(new Error('Invalid page request'));
+        return Promise.reject(new Error('Invalid page request'));
       }
 
       var pageIndex = pageNumber - 1;

-- 
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