Side navigation
#10646 closed bug (fixed)
Opened November 03, 2011 02:53AM UTC
Closed November 07, 2011 04:40PM UTC
Have jQuery.error throw instanceof Error object
Reported by: | dmethvin | Owned by: | dmethvin |
---|---|---|---|
Priority: | low | Milestone: | 1.7.1 |
Component: | core | Version: | 1.7rc2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Right now jQuery.error() rethrows the string argument that it gets. This doesn't play well with IE<9, which prefers to get an Error object or it doesn't show much useful information. See http://www.nczonline.net/blog/2009/03/10/the-art-of-throwing-javascript-errors-part-2/
Basically, just change throw msg
to throw new Error(msg)
.
Attachments (0)
Change History (4)
Changed November 03, 2011 02:53AM UTC by comment:1
owner: | → dmethvin |
---|---|
status: | new → assigned |
Changed November 03, 2011 02:54AM UTC by comment:2
component: | unfiled → core |
---|---|
milestone: | None → 1.7.1 |
priority: | undecided → low |
version: | 1.7b2 → 1.7rc2 |
Changed November 03, 2011 02:38PM UTC by comment:3
The same in sizzle: http://jqbug.com/10584