Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
62 lines
4.1 KiB
JavaScript
62 lines
4.1 KiB
JavaScript
// Module ID: 1686
|
|
// Function ID: 1687
|
|
// Dependencies: [1639, 1644, 1666, 1647, 1640, 1638, 1661]
|
|
// Exports: createWorkletRuntime, runOnRuntime
|
|
|
|
// Module 1686
|
|
import overrideLogFunctionImplementation from "overrideLogFunctionImplementation" /* 1638 */;
|
|
import _mod1640 from "module_1640" /* 1640 */;
|
|
import ReanimatedModule2 from "ReanimatedModule" /* 1644 */;
|
|
import _mod1647 from "module_1647" /* 1647 */;
|
|
import _mod1661 from "module_1661" /* 1661 */;
|
|
import freezeObjectInDev from "freezeObjectInDev" /* 1666 */;
|
|
import module_1639 from "module_1639" /* 1639 */;
|
|
|
|
const __initData = { code: "function pnpm_runtimesTs1(){const{registerReanimatedError,registerLoggerConfig,config,setupCallGuard,setupConsole,initializer}=this.__closure;var _initializer;registerReanimatedError();registerLoggerConfig(config);setupCallGuard();setupConsole();(_initializer=initializer)===null||_initializer===void 0||_initializer();}" };
|
|
let closure_4 = { code: "function pnpm_runtimesTs3(){const{worklet,args}=this.__closure;worklet(...args);}" };
|
|
let closure_5 = { code: "function pnpm_runtimesTs4(){const{worklet,args}=this.__closure;worklet(...args);}" };
|
|
function runOnRuntime(arg0, worklet) {
|
|
closure_0 = arg0;
|
|
return globalThis._WORKLET ? (() => {
|
|
const items = [...arguments];
|
|
const fn = function u() {
|
|
closure_1(...items);
|
|
};
|
|
fn.__closure = { worklet, args: items };
|
|
fn.__workletHash = 1376644884193;
|
|
fn.__initData = __initData;
|
|
return closure_0._scheduleOnRuntime(items, worklet(1666).makeShareableCloneOnUIRecursive(fn));
|
|
}) : (() => {
|
|
const items = [...arguments];
|
|
const ReanimatedModule = worklet(1644).ReanimatedModule;
|
|
const fn = function l() {
|
|
closure_1(...items);
|
|
};
|
|
fn.__closure = { worklet, args: items };
|
|
fn.__workletHash = 10918069222950;
|
|
fn.__initData = __initData2;
|
|
return ReanimatedModule.scheduleOnRuntime(items, worklet(1666).makeShareableCloneRecursive(fn));
|
|
});
|
|
}
|
|
runOnRuntime.__closure = { __DEV__: false, SHOULD_BE_USE_WEB: module_1639.shouldBeUseWeb(), isWorkletFunction: _mod1661.isWorkletFunction, makeShareableCloneOnUIRecursive: freezeObjectInDev.makeShareableCloneOnUIRecursive, ReanimatedModule: ReanimatedModule2.ReanimatedModule, makeShareableCloneRecursive: freezeObjectInDev.makeShareableCloneRecursive };
|
|
runOnRuntime.__workletHash = 14671185280560;
|
|
runOnRuntime.__initData = { code: "function runOnRuntime_Pnpm_runtimesTs2(workletRuntime,worklet){const{__DEV__,SHOULD_BE_USE_WEB,isWorkletFunction,makeShareableCloneOnUIRecursive,ReanimatedModule,makeShareableCloneRecursive}=this.__closure;if(__DEV__&&!SHOULD_BE_USE_WEB&&!isWorkletFunction(worklet)){throw new ReanimatedError('The function passed to `runOnRuntime` is not a worklet.'+(_WORKLET?' Please make sure that `processNestedWorklets` option in Reanimated Babel plugin is enabled.':''));}if(_WORKLET){return function(...args){return global._scheduleOnRuntime(workletRuntime,makeShareableCloneOnUIRecursive(function(){'worklet';worklet(...args);}));};}return function(...args){return ReanimatedModule.scheduleOnRuntime(workletRuntime,makeShareableCloneRecursive(function(){'worklet';worklet(...args);}));};}" };
|
|
|
|
export const createWorkletRuntime = function createWorkletRuntime(arg0, initializer) {
|
|
const ReanimatedModule = __reanimatedLoggerConfig(1644).ReanimatedModule;
|
|
const fn = function l() {
|
|
const result = _mod1647.registerReanimatedError();
|
|
_mod1640.registerLoggerConfig(__reanimatedLoggerConfig);
|
|
overrideLogFunctionImplementation.setupCallGuard();
|
|
overrideLogFunctionImplementation.setupConsole();
|
|
if (initializer != null) {
|
|
initializer();
|
|
}
|
|
};
|
|
let obj = __reanimatedLoggerConfig(1666);
|
|
fn.__closure = { registerReanimatedError: __reanimatedLoggerConfig(1647).registerReanimatedError, registerLoggerConfig: __reanimatedLoggerConfig(1640).registerLoggerConfig, config: globalThis.__reanimatedLoggerConfig, setupCallGuard: __reanimatedLoggerConfig(1638).setupCallGuard, setupConsole: __reanimatedLoggerConfig(1638).setupConsole, initializer };
|
|
fn.__workletHash = 8531807001072;
|
|
fn.__initData = __initData;
|
|
return ReanimatedModule.createWorkletRuntime(arg0, obj.makeShareableCloneRecursive(fn));
|
|
};
|
|
export { runOnRuntime };
|