From: Andreas Gal Date: Sun, 5 Jun 2011 06:15:51 +0000 (-0700) Subject: use an array not an object to cache objects X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5c06cd1de5547036a9733c63622ef01d7345ada8;p=pdf.js.git use an array not an object to cache objects --- diff --git a/pdf.js b/pdf.js index 1f74f0e..0342ca6 100644 --- a/pdf.js +++ b/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 = {