mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #11363 from Snuffleupagus/fetchUncompressed-isInteger-checks
Remove the `Number.isInteger` checks from `XRef.fetchUncompressed` (PR 8857 follow-up)
This commit is contained in:
commit
b0aee6b1f0
1 changed files with 0 additions and 6 deletions
|
@ -1682,12 +1682,6 @@ var XRef = (function XRefClosure() {
|
|||
var obj2 = parser.getObj();
|
||||
var obj3 = parser.getObj();
|
||||
|
||||
if (!Number.isInteger(obj1)) {
|
||||
obj1 = parseInt(obj1, 10);
|
||||
}
|
||||
if (!Number.isInteger(obj2)) {
|
||||
obj2 = parseInt(obj2, 10);
|
||||
}
|
||||
if (obj1 !== num || obj2 !== gen || !(obj3 instanceof Cmd)) {
|
||||
throw new XRefEntryException(`Bad (uncompressed) XRef entry: ${ref}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue