From 30b8d1dd08b08e1ba73d74edc1cffab7b6d4ed2b Mon Sep 17 00:00:00 2001
From: Kalervo Kujala <kkujala@>
Date: Mon, 12 Sep 2011 21:05:52 +0300
Subject: [PATCH] Use empty strings in shadow encodings array instead of
 undefined.

---
 pdf.js | 56 ++++++++++++++++++++++++++++++--------------------------
 1 file changed, 30 insertions(+), 26 deletions(-)

diff --git a/pdf.js b/pdf.js
index 939d9e21c..ca252242c 100644
--- a/pdf.js
+++ b/pdf.js
@@ -3756,38 +3756,42 @@ var PDFDoc = (function() {
 
 var Encodings = {
   get ExpertEncoding() {
-    return shadow(this, 'ExpertEncoding', [,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
-      'space', 'exclamsmall', 'Hungarumlautsmall',, 'dollaroldstyle',
-      'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
-      'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
-      'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
-      'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
-      'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'colon',
-      'semicolon', 'commasuperior', 'threequartersemdash', 'periodsuperior',
-      'questionsmall',, 'asuperior', 'bsuperior', 'centsuperior', 'dsuperior',
-      'esuperior',,, 'isuperior',,, 'lsuperior', 'msuperior', 'nsuperior',
-      'osuperior',,, 'rsuperior', 'ssuperior', 'tsuperior',, 'ff', 'fi', 'fl',
-      'ffi', 'ffl', 'parenleftinferior',, 'parenrightinferior',
+    return shadow(this, 'ExpertEncoding', ['', '', '', '', '', '', '', '', '',
+      '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
+      '', '', '', '', '', 'space', 'exclamsmall', 'Hungarumlautsmall', '',
+      'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'Acutesmall',
+      'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
+      'onedotenleader', 'comma', 'hyphen', 'period', 'fraction',
+      'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle',
+      'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle',
+      'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', 'commasuperior',
+      'threequartersemdash', 'periodsuperior', 'questionsmall', '',
+      'asuperior', 'bsuperior', 'centsuperior', 'dsuperior', 'esuperior', '',
+      '', 'isuperior', '', '', 'lsuperior', 'msuperior', 'nsuperior',
+      'osuperior', '', '', 'rsuperior', 'ssuperior', 'tsuperior', '', 'ff',
+      'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '', 'parenrightinferior',
       'Circumflexsmall', 'hyphensuperior', 'Gravesmall', 'Asmall', 'Bsmall',
       'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
       'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
       'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
       'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
-      'Tildesmall',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 'exclamdownsmall',
-      'centoldstyle', 'Lslashsmall',,, 'Scaronsmall', 'Zcaronsmall',
-      'Dieresissmall', 'Brevesmall', 'Caronsmall',, 'Dotaccentsmall',,,
-      'Macronsmall',,, 'figuredash', 'hypheninferior',,, 'Ogoneksmall',
-      'Ringsmall', 'Cedillasmall',,,, 'onequarter', 'onehalf', 'threequarters',
+      'Tildesmall', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
+      '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
+      '', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall', '', '',
+      'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall',
+      'Caronsmall', '', 'Dotaccentsmall', '', '', 'Macronsmall', '', '',
+      'figuredash', 'hypheninferior', '', '', 'Ogoneksmall', 'Ringsmall',
+      'Cedillasmall', '', '', '', 'onequarter', 'onehalf', 'threequarters',
       'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
-      'seveneighths', 'onethird', 'twothirds',,, 'zerosuperior', 'onesuperior',
-      'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
-      'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
-      'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
-      'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
-      'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
-      'periodinferior', 'commainferior', 'Agravesmall', 'Aacutesmall',
-      'Acircumflexsmall', 'Atildesmall', 'Adieresissmall', 'Aringsmall',
-      'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
+      'seveneighths', 'onethird', 'twothirds', '', '', 'zerosuperior',
+      'onesuperior', 'twosuperior', 'threesuperior', 'foursuperior',
+      'fivesuperior', 'sixsuperior', 'sevensuperior', 'eightsuperior',
+      'ninesuperior', 'zeroinferior', 'oneinferior', 'twoinferior',
+      'threeinferior', 'fourinferior', 'fiveinferior', 'sixinferior',
+      'seveninferior', 'eightinferior', 'nineinferior', 'centinferior',
+      'dollarinferior', 'periodinferior', 'commainferior', 'Agravesmall',
+      'Aacutesmall', 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall',
+      'Aringsmall', 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
       'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
       'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
       'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',