Browse Source

no need to freeze constructors and protos

Andreas Gal 14 years ago
parent
commit
2040b871da
  1. 15
      pdf.js

15
pdf.js

@ -53,12 +53,10 @@ var Obj = (function() { @@ -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() { @@ -369,8 +367,6 @@ var Lexer = (function() {
}
};
Object.freeze(constructor.prototype);
Object.freeze(constructor);
return constructor;
})();
@ -475,9 +471,6 @@ var Parser = (function() { @@ -475,9 +471,6 @@ var Parser = (function() {
}
};
Object.freeze(constructor.prototype);
Object.freeze(constructor);
return constructor;
})();

Loading…
Cancel
Save