try-catch isPlainObject detection
|Reported by:||bkrausz||Owned by:||Rick Waldron|
A mildly convoluted case, but it caused me some hours of pain: http://nerdlife.net/jquery_bug_test.html
IE8 & 9 both throw exceptions on this, but they're silent for some reason unless you have IE9 script debugging on, in which case "SCRIPT65535:" is thrown. I understand the desire to not special-case every host object, but it seems worth throwing a try/catch around the checks there to return false (as jaubourg suggested in #7780) given that nothing but a non-plain object should be causing an exception here.
At the very least that would prevent a silent exception from being thrown.
Change History (15)
comment:1 Changed 6 years ago by
|Component:||unfiled → core|
|Owner:||set to bkrausz|
|Priority:||undecided → low|
|Status:||new → pending|
comment:6 Changed 6 years ago by
|Owner:||changed from bkrausz to Rick Waldron|
|Status:||reopened → assigned|