From 2040b871da7cc30cd23a27a0033a5171d164f8b6 Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Mon, 2 May 2011 19:07:16 -0700 Subject: [PATCH] no need to freeze constructors and protos --- pdf.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/pdf.js b/pdf.js index 62317e64e..e78b323ed 100644 --- 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; })();