no need to freeze constructors and protos

This commit is contained in:
Andreas Gal 2011-05-02 19:07:16 -07:00
parent a6b123016b
commit 2040b871da

15
pdf.js
View File

@ -53,12 +53,10 @@ var Obj = (function() {
} }
} }
Object.freeze(constructor.trueObj = new constructor(constructor.Bool, true)); constructor.trueObj = new constructor(constructor.Bool, true);
Object.freeze(constructor.falseObj = new constructor(constructor.Bool, false)); constructor.falseObj = new constructor(constructor.Bool, false);
Object.freeze(constructor.nullObj = new constructor(constructor.Null)); constructor.nullObj = new constructor(constructor.Null);
Object.freeze(constructor.errorObj = new constructor(constructor.Error)); constructor.errorObj = new constructor(constructor.Error);
Object.freeze(constructor.prototype);
Object.freeze(constructor);
return constructor; return constructor;
})(); })();
@ -369,8 +367,6 @@ var Lexer = (function() {
} }
}; };
Object.freeze(constructor.prototype);
Object.freeze(constructor);
return constructor; return constructor;
})(); })();
@ -475,9 +471,6 @@ var Parser = (function() {
} }
}; };
Object.freeze(constructor.prototype);
Object.freeze(constructor);
return constructor; return constructor;
})(); })();