mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 07:55:21 -05:00
Fix #12191. jQuery.type should return "error" for Error objects.
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user