mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
[api-minor] Reduce duplication in the "gets non-existent page" unit-test
This commit is contained in:
parent
2bb96a708c
commit
2be8036eb7
2 changed files with 16 additions and 33 deletions
|
@ -2848,7 +2848,7 @@ class WorkerTransport {
|
|||
pageNumber <= 0 ||
|
||||
pageNumber > this._numPages
|
||||
) {
|
||||
return Promise.reject(new Error("Invalid page request"));
|
||||
return Promise.reject(new Error("Invalid page request."));
|
||||
}
|
||||
|
||||
const pageIndex = pageNumber - 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue