We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c574694 + 0a91764 commit 8319fffCopy full SHA for 8319fff
1 file changed
src/core/xref.js
@@ -683,10 +683,10 @@ class XRef {
683
// iterate over empty entries so we use the `in` operator instead of
684
// using for..of on entries() or a for with the array length.
685
for (const num in this.entries) {
686
- if (!Object.hasOwn(this.entries, num)) {
+ const entry = this.entries[num];
687
+ if (!entry) {
688
continue;
689
}
- const entry = this.entries[num];
690
const ref = Ref.get(parseInt(num), entry.gen);
691
let obj;
692
@@ -695,7 +695,6 @@ class XRef {
695
} catch {
696
697
698
-
699
if (obj instanceof BaseStream) {
700
obj = obj.dict;
701
0 commit comments