use an array not an object to cache objects
This commit is contained in:
parent
47f0326eee
commit
5c06cd1de5
2
pdf.js
2
pdf.js
@ -1151,7 +1151,7 @@ var XRef = (function() {
|
||||
error("Invalid root reference");
|
||||
|
||||
// prepare the XRef cache
|
||||
this.cache = Object.create(null);
|
||||
this.cache = [];
|
||||
}
|
||||
|
||||
constructor.prototype = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user