//2.13 错误
isError: function(val) {return this.getType(val) === "Error" || val instanceof Error},
isEvalError: function(val) {return this.getType(val) === "EvalError" || val instanceof EvalError},
isRangeError: function(val) {return this.getType(val) === "RangeError" || val instanceof RangeError},
isReferenceError: function(val) {return this.getType(val) === "ReferenceError" || val instanceof ReferenceError},
isSyntaxError: function(val) {return this.getType(val) === "SyntaxError" || val instanceof SyntaxError},
isTypeError: function(val) {return this.getType(val) === "TypeError" || val instanceof TypeError},
isURIError: function(val) {return this.getType(val) === "URIError" || val instanceof URIError},
isAggregateError: function(val) {
if (typeof AggregateError !== 'undefined') {return this.getType(val) === "AggregateError" || val instanceof AggregateError};
return this.isError(val) && Array.isArray(val.errors)
},
})`;
}