in packages/shared/src/globalThisPolyfill.ts [1:18]
function getGlobalThis() {
try {
if (typeof self !== 'undefined') {
return self
}
} catch (e) {}
try {
if (typeof globalThisPolyfill !== 'undefined') {
return globalThisPolyfill
}
} catch (e) {}
try {
if (typeof global !== 'undefined') {
return global
}
} catch (e) {}
return Function('return this')()
}