decord/source/848__notifyEventProcessors.js

58 lines
1.7 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 848
2026-07-25 08:10:48 +00:00
// Function ID: 9468
2026-07-20 16:05:17 +00:00
// Name: _notifyEventProcessors
2026-07-23 10:11:24 +00:00
// Dependencies: [804, 849, 800, 801]
2026-07-20 16:05:17 +00:00
// Module 848 (_notifyEventProcessors)
2026-07-23 10:11:24 +00:00
const require = arg1;
let dependencyMap = arg6;
function _notifyEventProcessors(arg0, arg1, arg2, arg3) {
const _require = arg1;
const dependencyMap = arg2;
2026-07-20 16:05:17 +00:00
const _notifyEventProcessors = arg3;
2026-07-23 10:11:24 +00:00
if (arg0) {
2026-07-20 16:05:17 +00:00
if (tmp) {
const _Object = Object;
2026-07-23 10:11:24 +00:00
const tmpResult = tmp(Object.assign({}, arg0), arg1);
let DEBUG_BUILD = _require(800).DEBUG_BUILD;
2026-07-20 16:05:17 +00:00
if (DEBUG_BUILD) {
DEBUG_BUILD = null === tmpResult;
}
if (DEBUG_BUILD) {
2026-07-23 10:11:24 +00:00
const debug = _require(801).debug;
2026-07-20 16:05:17 +00:00
let str = tmp.id;
if (!str) {
str = "?";
}
const _HermesInternal = HermesInternal;
debug.log("Event processor \"" + str + "\" dropped event");
}
if (obj.isThenable(tmpResult)) {
2026-07-23 10:11:24 +00:00
let nextPromise = tmpResult.then((arg0) => callback(arg0, closure_0, closure_1, callback + 1));
2026-07-20 16:05:17 +00:00
} else {
nextPromise = _notifyEventProcessors(tmpResult, arg1, arg2, arg3 + 1);
}
return nextPromise;
}
}
2026-07-23 10:11:24 +00:00
return arg0;
2026-07-20 16:05:17 +00:00
}
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
2026-07-23 10:11:24 +00:00
arg5.notifyEventProcessors = function notifyEventProcessors(arg0, arg1, arg2) {
2026-07-20 16:05:17 +00:00
let num = 0;
if (arguments.length > 3) {
num = 0;
if (undefined !== arguments[3]) {
num = arguments[3];
}
}
2026-07-23 10:11:24 +00:00
const tmp = _notifyEventProcessors(arg1, arg2, arg0, num);
2026-07-20 16:05:17 +00:00
if (obj.isThenable(tmp)) {
let resolvedSyncPromiseResult = tmp;
} else {
2026-07-23 10:11:24 +00:00
resolvedSyncPromiseResult = require(849) /* SyncPromise */.resolvedSyncPromise(tmp);
const obj2 = require(849) /* SyncPromise */;
2026-07-20 16:05:17 +00:00
}
return resolvedSyncPromiseResult;
};