no need to freeze constructors and protos
This commit is contained in:
parent
a6b123016b
commit
2040b871da
15
pdf.js
15
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;
|
||||
})();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user