diff --git a/fonts.js b/fonts.js index 40259a36e..57e2e73c8 100755 --- a/fonts.js +++ b/fonts.js @@ -2,7 +2,6 @@ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ 'use strict'; -var missingGlyphs = []; var isWorker = (typeof window == 'undefined'); /** @@ -1645,10 +1644,8 @@ CFF.prototype = { for (var i = 0; i < glyphs.length; i++) { var glyph = glyphs[i]; var unicode = GlyphsUnicode[glyph.glyph]; - if (!unicode) { if (glyph.glyph != '.notdef') { - missingGlyphs.push(glyph.glyph); warn(glyph.glyph + ' does not have an entry in the glyphs unicode dictionary'); } diff --git a/pdf.js b/pdf.js index 64eb2d452..e332e12e5 100644 --- a/pdf.js +++ b/pdf.js @@ -1917,7 +1917,7 @@ var Cmd = (function() { var Dict = (function() { function constructor() { - this.map = {}; + this.map = Object.create(null); } constructor.prototype = {