]> git.parisson.com Git - pdf.js.git/commitdiff
no need to freeze constructors and protos
authorAndreas Gal <andreas.gal@gmail.com>
Tue, 3 May 2011 02:07:16 +0000 (19:07 -0700)
committerAndreas Gal <andreas.gal@gmail.com>
Tue, 3 May 2011 02:07:16 +0000 (19:07 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index 62317e64effa250168d2e0aa46cc8011e00ecf89..e78b323ed39587479bc6d854db7ffc7452b8a6cd 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -53,12 +53,10 @@ var Obj = (function() {
         }
     }
 
-    Object.freeze(constructor.trueObj = new constructor(constructor.Bool, true));
-    Object.freeze(constructor.falseObj = new constructor(constructor.Bool, false));
-    Object.freeze(constructor.nullObj = new constructor(constructor.Null));
-    Object.freeze(constructor.errorObj = new constructor(constructor.Error));
-    Object.freeze(constructor.prototype);
-    Object.freeze(constructor);
+    constructor.trueObj = new constructor(constructor.Bool, true);
+    constructor.falseObj = new constructor(constructor.Bool, false);
+    constructor.nullObj = new constructor(constructor.Null);
+    constructor.errorObj = new constructor(constructor.Error);
 
     return constructor;
 })();
@@ -369,8 +367,6 @@ var Lexer = (function() {
         }
     };
 
-    Object.freeze(constructor.prototype);
-    Object.freeze(constructor);
     return constructor;
 })();
 
@@ -475,9 +471,6 @@ var Parser = (function() {
         }
     };
 
-    Object.freeze(constructor.prototype);
-    Object.freeze(constructor);
-
     return constructor;
 })();