(exception)
| 91 | } |
| 92 | |
| 93 | function isGenericObjectRejectionException(exception) { |
| 94 | if (!exception || typeof exception !== 'object') return false; |
| 95 | |
| 96 | var mechanismType = toLowerSafe( |
| 97 | exception.mechanism && exception.mechanism.type ? exception.mechanism.type : '' |
| 98 | ); |
| 99 | if (mechanismType !== 'onunhandledrejection') return false; |
| 100 | |
| 101 | var exceptionValue = toLowerSafe(exception.value); |
| 102 | return exceptionValue.indexOf('object captured as promise rejection with keys') !== -1 || |
| 103 | exceptionValue.indexOf('non-error promise rejection captured with keys') !== -1; |
| 104 | } |
| 105 | |
| 106 | function collectEventSearchableText(event) { |
| 107 | var MAX_DEPTH = 4; |
nothing calls this directly
no test coverage detected