Files
discord-decomp/sources/by-id/module-00018-Inherits.js
2026-07-28 01:06:53 +03:00

37 lines
1.8 KiB
JavaScript

/* Metro module 18; source: unknown; dependencies: [19] */
function _fun258(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:23:6, offset: 0x00c3dc4f, size: 63 bytes, params: 8, frame: 3
const env0_0 = require;
module.exports = exports_259;
module.exports.__esModule = true;
module.exports.default = module.exports;
function exports_259(a0, a1) { // fn#259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:23:41, offset: 0x00c3dc8e, size: 188 bytes, params: 3, frame: 19
var Object;
const value = a1;
if (typeof value === 'function') {
Object = global.Object;
a0.prototype = Object.create(value && value.prototype, {constructor: {'value': null, 'writable': true,
'configurable': true, value: a0}});
Object = global.Object;
Object.defineProperty(a0, 'prototype', {writable: false});
if (value) {
(require(19) /* metro dependency 19 */)(a0, value);
}
} else {
if (value !== null) {
throw new global.TypeError('Super expression must either be null or a function');
}
Object = global.Object;
a0.prototype = Object.create(value && value.prototype, {constructor: {'value': null, 'writable': true,
'configurable': true, value: a0}});
Object = global.Object;
Object.defineProperty(a0, 'prototype', {writable: false});
if (value) {
(require(19) /* metro dependency 19 */)(a0, value);
}
}
}
}
global.__d(_fun258, 18, [19]) /* metro module 18, dependencies: [19] */;