Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Core: Remove special case try/catch in isPlainObject

Fixes #14746
  • Loading branch information...
commit 3dccf62c81b5fbecc3a0431a8927ed1d30806fc6 1 parent 01c360f
@rwaldron rwaldron authored
Showing with 2 additions and 10 deletions.
  1. +2 −10 src/core.js
View
12 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.