From 652dde48da59141a3d8ad7b0c124ae6b4efd19ac Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Wed, 7 May 2014 23:25:24 +0200 Subject: [PATCH] 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 977fb8c7e..e2dce6d9d 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;