Fix #12191. jQuery.type should return "error" for Error objects.

This commit is contained in:
Dave Methvin
2012-11-24 17:22:14 -05:00
parent 78c1560065
commit 67df705bf5
2 changed files with 3 additions and 2 deletions

View File

@@ -902,7 +902,7 @@ jQuery.ready.promise = function( obj ) {
};
// Populate the class2type map
jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) {
class2type[ "[object " + name + "]" ] = name.toLowerCase();
});