Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,104 @@
|
||||
/* Metro module 1145; source: unknown; dependencies: [31, 826, 1032] */
|
||||
function _fun12701(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#12701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1272:6, offset: 0x00dd2e61, size: 142 bytes, params: 8, frame: 22
|
||||
let env0_0 = require;
|
||||
let closure = function(a0) {
|
||||
var r0;
|
||||
var value = a0.match(RegExp('^([^.]+)', ''));
|
||||
var value2 = value !== null;
|
||||
if (value2) {
|
||||
value = global.parseInt(value[0]);
|
||||
value = value >= 17;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
const closure2 = function(a0, a1) {
|
||||
var WeakSet = global.WeakSet;
|
||||
var env0_0 = new WeakSet();
|
||||
var closure = _fun12704;
|
||||
var env0_1 = closure;
|
||||
closure(a0, a1);
|
||||
};
|
||||
const closure3 = captureReactException;
|
||||
const Object = global.Object;
|
||||
const defineProperty = Object.defineProperty;
|
||||
const Symbol = global.Symbol;
|
||||
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
||||
const env0_2 = require(31) /* metro dependency 31 */;
|
||||
exports.captureReactException = closure3;
|
||||
exports.isAtLeastReact17 = closure;
|
||||
exports.reactErrorHandler = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return _fun12708;
|
||||
};
|
||||
exports.setCause = closure2;
|
||||
}
|
||||
|
||||
function setCause(a0, a1) { // fn#12703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1272:196, offset: 0x00dd2f32, size: 62 bytes, params: 3, frame: 13
|
||||
const WeakSet = global.WeakSet;
|
||||
const weakSet = new WeakSet();
|
||||
recurse(a0, a1);
|
||||
}
|
||||
|
||||
function captureReactException(a0, {componentStack}, a2) { // fn#12705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1272:340, offset: 0x00dd2fc3, size: 213 bytes, params: 4, frame: 18
|
||||
var moduleValue;
|
||||
var Error;
|
||||
var message;
|
||||
var error;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a2;
|
||||
if (isAtLeastReact17(componentStack.version)) {
|
||||
moduleValue = require(826) /* metro dependency 826 */;
|
||||
if (moduleValue.isError(a0)) {
|
||||
if (componentStack) {
|
||||
Error = global.Error;
|
||||
message = a0.message;
|
||||
error = new Error();
|
||||
error.name = 'React ErrorBoundary ' + a0.name;
|
||||
error.stack = componentStack;
|
||||
setCause(a0, error);
|
||||
}
|
||||
}
|
||||
}
|
||||
return (require(1032) /* metro dependency 1032 */).withScope(_fun12706);
|
||||
}
|
||||
|
||||
function reactErrorHandler(a0) { // fn#12707, offset: 0x00dd30e8, size: 16 bytes, params: 2, frame: 2
|
||||
const env0_0 = a0;
|
||||
return _fun12708;
|
||||
}
|
||||
|
||||
function recurse(a0, a1) { // fn#12704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1272:238, owner: setCause.recurse, offset: 0x00dd2f70, size: 83 bytes, params: 3, frame: 15
|
||||
var r0;
|
||||
const binding = env0_0;
|
||||
if (binding.has(a0)) {
|
||||
return undefined;
|
||||
}
|
||||
if (a0.cause) {
|
||||
env0_0.add(a0);
|
||||
r0 = recurse(a0.cause, a1);
|
||||
} else {
|
||||
a0.cause = a1;
|
||||
r0 = undefined;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun12706(a0) { // fn#12706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1272:572, offset: 0x00dd3098, size: 80 bytes, params: 2, frame: 14
|
||||
a0.setContext('react', {componentStack: componentStack});
|
||||
const moduleValue = require(1032) /* metro dependency 1032 */;
|
||||
return moduleValue.captureException(env0_0, importDefault);
|
||||
}
|
||||
|
||||
function _fun12708(a0, a1) { // fn#12708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1272:804, offset: 0x00dd30f8, size: 75 bytes, params: 3, frame: 18
|
||||
const binding = env0_0;
|
||||
const captureReactExceptionBinding = captureReactException;
|
||||
const object2 = {};
|
||||
object2.mechanism = {handled: !!binding, type: 'auto.function.react.error_handler'};
|
||||
if (binding) {
|
||||
env0_0(a0, a1, captureReactExceptionBinding(a0, a1, object2));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user