94 lines
4.1 KiB
React
94 lines
4.1 KiB
React
/* Metro module 851; source: unknown; dependencies: [6, 7, 852, 836, 834, 856] */
|
|
function _fun9174(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:6, offset: 0x00d5f4a0, size: 164 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const env0_2 = require(6) /* metro dependency 6 */;
|
|
const env0_3 = require(7) /* metro dependency 7 */;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.AsyncContextStack = _fun9181();
|
|
exports.getStackAsyncContextStrategy = function() {
|
|
return {withIsolationScope: withIsolationScope, withScope: withScope, withSetScope: withSetScope,
|
|
withSetIsolationScope: _fun9193, getCurrentScope: _fun9194, getIsolationScope: _fun9195};
|
|
};
|
|
}
|
|
|
|
function withSetScope(a0, a1) { // fn#9177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:1414, offset: 0x00d5f5f5, size: 51 bytes, params: 3, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return getAsyncContextStack().withScope(_fun9178);
|
|
}
|
|
|
|
function withIsolationScope(a0) { // fn#9179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:1540, offset: 0x00d5f650, size: 40 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
return getAsyncContextStack().withScope(_fun9180);
|
|
}
|
|
|
|
function _fun9181() { // fn#9181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:123, offset: 0x00d5f69d, size: 193 bytes, params: 1, frame: 15
|
|
return env0_3(AsyncContextStack, [{key: 'withScope', value: function(a0) {
|
|
var r0;
|
|
var error;
|
|
var env0_0 = this;
|
|
var value = this._pushScope();
|
|
try {
|
|
value = a0(value);
|
|
} catch (error) {
|
|
this._popScope();
|
|
throw error;
|
|
}
|
|
if (require(dependencyMap[3]).isThenable(value)) {
|
|
value = value.then(_fun9184, _fun9185);
|
|
r0 = value;
|
|
} else {
|
|
this._popScope();
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}}, {key: 'getClient', value: function() {
|
|
return this.getStackTop().client;
|
|
}}, {key: 'getScope', value: function() {
|
|
return this.getStackTop().scope;
|
|
}}, {key: 'getIsolationScope', value: function() {
|
|
return this._isolationScope;
|
|
}}, {key: 'getStackTop', value: function() {
|
|
return this._stack[this._stack.length - 1];
|
|
}}, {key: '_pushScope', value: function() {
|
|
var value = this.getScope();
|
|
value = value.clone();
|
|
this._stack.push({client: this.getClient(), scope: value});
|
|
return value;
|
|
}}, {key: '_popScope', value: function() {
|
|
return !(this._stack.length <= 1) && !!this._stack.pop();
|
|
}}]);
|
|
}
|
|
|
|
function getStackAsyncContextStrategy() { // fn#9192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:1734, offset: 0x00d5f970, size: 66 bytes, params: 1, frame: 4
|
|
return {withIsolationScope: withIsolationScope, withScope: withScope, withSetScope: withSetScope,
|
|
withSetIsolationScope: function(a0, a1) {
|
|
return withIsolationScope(a1);
|
|
}, getCurrentScope: getCurrentScope_9194, getIsolationScope: getIsolationScope_9195};
|
|
}
|
|
|
|
function value_9183(a0) { // fn#9183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:978:344, offset: 0x00d5f7fc, size: 128 bytes, params: 2, frame: 16
|
|
var r0;
|
|
var error;
|
|
let value = this._pushScope();
|
|
try {
|
|
value = a0(value);
|
|
} catch (error) {
|
|
this._popScope();
|
|
throw error;
|
|
}
|
|
const moduleValue = require(836) /* metro dependency 836 */;
|
|
if (moduleValue.isThenable(value)) {
|
|
value = value.then(_fun9184, _fun9185);
|
|
r0 = value;
|
|
} else {
|
|
this._popScope();
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|