1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 17:48:07 +02:00

Replace the isInt helper function with the native Number.isInteger function

*Follow-up to PR 8643.*
This commit is contained in:
Jonas Jenwald 2017-09-01 16:52:50 +02:00
parent 066fea9c8b
commit 11408da340
12 changed files with 65 additions and 72 deletions

View file

@ -14,7 +14,7 @@
*/
import {
arrayByteLength, arraysToBytes, createPromiseCapability, isEmptyObj, isInt,
arrayByteLength, arraysToBytes, createPromiseCapability, isEmptyObj,
MissingDataException
} from '../shared/util';
@ -518,7 +518,7 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
} else {
nextEmptyChunk = this.stream.nextEmptyChunk(endChunk);
}
if (isInt(nextEmptyChunk)) {
if (Number.isInteger(nextEmptyChunk)) {
this._requestChunks([nextEmptyChunk]);
}
}