Removing non-standard __defineGetter__ function
This commit is contained in:
parent
846fc1755c
commit
871b431176
14
pdf.js
14
pdf.js
@ -55,16 +55,10 @@ function assertWellFormed(cond, msg) {
|
||||
}
|
||||
|
||||
function shadow(obj, prop, value) {
|
||||
try {
|
||||
Object.defineProperty(obj, prop, { value: value,
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: false });
|
||||
} catch (e) {
|
||||
obj.__defineGetter__(prop, function shadowDefineGetter() {
|
||||
return value;
|
||||
});
|
||||
}
|
||||
Object.defineProperty(obj, prop, { value: value,
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: false });
|
||||
return value;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user