From 3dccf62c81b5fbecc3a0431a8927ed1d30806fc6 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Sun, 2 Feb 2014 15:36:14 -0500 Subject: [PATCH] Core: Remove special case try/catch in isPlainObject Fixes #14746 --- src/core.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/core.js b/src/core.js index 6afb97685..67b6e7199 100644 --- a/src/core.js +++ b/src/core.js @@ -225,16 +225,8 @@ jQuery.extend({ return false; } - // Support: Firefox <20 - // The try/catch suppresses exceptions thrown when attempting to access - // the "constructor" property of certain host objects, ie. |window.location| - // https://bugzilla.mozilla.org/show_bug.cgi?id=814622 - try { - if ( obj.constructor && - !hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) { - return false; - } - } catch ( e ) { + if ( obj.constructor && + !hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) { return false; } -- 2.39.5