Commit 3dccf62c authored by Rick Waldron's avatar Rick Waldron

Core: Remove special case try/catch in isPlainObject

Fixes #14746
parent 01c360f9
...@@ -225,16 +225,8 @@ jQuery.extend({ ...@@ -225,16 +225,8 @@ jQuery.extend({
return false; return false;
} }
// Support: Firefox <20 if ( obj.constructor &&
// The try/catch suppresses exceptions thrown when attempting to access !hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) {
// 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 ) {
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment