MCPcopy Create free account
hub / github.com/Silentely/eSIM-Tools / isGenericObjectRejectionException

Function isGenericObjectRejectionException

src/js/sentry-loader.js:93–104  ·  view source on GitHub ↗
(exception)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

toLowerSafeFunction · 0.70

Tested by

no test coverage detected