From 871b43117606b4b5a42db61de8be23e2923c23e5 Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Sat, 1 Oct 2011 16:21:13 -0500 Subject: [PATCH] Removing non-standard __defineGetter__ function --- pdf.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/pdf.js b/pdf.js index 3fa22496a..a1f722f84 100644 --- a/pdf.js +++ b/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; }