From 0cdecf007f9ff8bd51b892300655a8d1b2baf968 Mon Sep 17 00:00:00 2001
From: Jean-Sebastien Legare <jslegare@gmail.com>
Date: Sat, 27 Oct 2012 21:18:37 -0700
Subject: [PATCH] try/catch bug. var not unset when getter length() throws
 error

---
 src/core.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/core.js b/src/core.js
index e1e6bf3f9..4ed8ec255 100644
--- a/src/core.js
+++ b/src/core.js
@@ -458,6 +458,7 @@ var PDFDocument = (function PDFDocumentClosure() {
         } catch (err) {
           warn('The linearization data is not available ' +
                'or unreadable pdf data is found');
+          linearization = false;
         }
       }
       // shadow the prototype getter with a data property