2026-07-20 16:05:17 +00:00
// Module ID: 993
2026-07-25 08:10:48 +00:00
// Function ID: 10674
2026-07-20 16:05:17 +00:00
// Name: getPromisePolyfill
2026-07-23 10:11:24 +00:00
// Dependencies: [973, 794, 994, 996, 997, 998, 793]
2026-07-20 16:05:17 +00:00
// Module 993 (getPromisePolyfill)
2026-07-23 10:11:24 +00:00
const require = arg1 ;
const dependencyMap = arg6 ;
2026-07-20 16:05:17 +00:00
function getPromisePolyfill ( ) {
2026-07-23 10:11:24 +00:00
return require ( 997 ) /* valuePromise */ ;
2026-07-20 16:05:17 +00:00
}
arg5 . polyfillPromise = function polyfillPromise ( ) {
2026-07-23 10:11:24 +00:00
if ( _require ( 973 ) . ReactNativeLibraries . Utilities ) {
_require = getPromisePolyfill ( ) ;
_require ( 994 ) ;
_require ( 996 ) ;
const Utilities = _require ( 973 ) . ReactNativeLibraries . Utilities ;
2026-07-20 16:05:17 +00:00
Utilities . polyfillGlobal ( "Promise" , ( ) => closure _0 ) ;
} else {
2026-07-23 10:11:24 +00:00
const debug = _require ( 794 ) . debug ;
2026-07-20 16:05:17 +00:00
debug . warn ( "Could not polyfill Promise. React Native Libraries Utilities not found." ) ;
}
} ;
arg5 . getPromisePolyfill = getPromisePolyfill ;
arg5 . requireRejectionTracking = function requireRejectionTracking ( ) {
2026-07-23 10:11:24 +00:00
return require ( 998 ) /* disable */ ;
2026-07-20 16:05:17 +00:00
} ;
arg5 . checkPromiseAndWarn = function checkPromiseAndWarn ( ) {
2026-07-23 10:11:24 +00:00
const tmp = require ( 997 ) /* valuePromise */ ;
if ( require ( 973 ) /* reactNativeVersion */ . ReactNativeLibraries . Promise !== tmp ) {
const debug = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
debug . warn ( "You appear to have multiple versions of the \"promise\" package installed. This may cause unexpected behavior like undefined `Promise.allSettled`. Please install the `promise` package manually using the exact version as the React Native package. See https://docs.sentry.io/platforms/react-native/troubleshooting/ for more details." ) ;
}
2026-07-23 10:11:24 +00:00
if ( tmp2 !== require ( 793 ) /* RN_GLOBAL_OBJ */ . RN _GLOBAL _OBJ . Promise ) {
const debug3 = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
debug3 . warn ( "Unhandled promise rejections will not be caught by Sentry. See https://docs.sentry.io/platforms/react-native/troubleshooting/ for more details." ) ;
} else {
2026-07-23 10:11:24 +00:00
const debug2 = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
debug2 . log ( "Unhandled promise rejections will be caught by Sentry." ) ;
}
} ;