Merge pull request #4771 from Snuffleupagus/api-promise-reject-fix

Fix typo when rejecting Promise in getPage
This commit is contained in:
Yury Delendik 2014-05-10 07:48:30 -05:00
commit 2acb40fffb

View File

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