46 lines
1.7 KiB
JavaScript
46 lines
1.7 KiB
JavaScript
// Module ID: 6362
|
|
// Function ID: 57230
|
|
// Name: notifyEventProcessors
|
|
// Dependencies: [6335, 6339, 6311, 6318]
|
|
|
|
// Module 6362 (notifyEventProcessors)
|
|
const require = arg1;
|
|
let dependencyMap = arg6;
|
|
function notifyEventProcessors(arg0, arg1, arg2) {
|
|
const _require = arg0;
|
|
let dependencyMap = arg1;
|
|
let closure_2 = arg2;
|
|
let num = 0;
|
|
if (arguments.length > 3) {
|
|
num = 0;
|
|
if (undefined !== arguments[3]) {
|
|
num = arguments[3];
|
|
}
|
|
}
|
|
return new _require(6335).SyncPromise((arg0, arg1) => {
|
|
const dependencyMap = arg0;
|
|
if (null !== dependencyMap2) {
|
|
if ("function" === typeof tmp) {
|
|
const _Object = Object;
|
|
const tmpResult = tmp(Object.assign({}, dependencyMap2), callback);
|
|
if (tmp2) {
|
|
const logger = dependencyMap(6311).logger;
|
|
const _HermesInternal = HermesInternal;
|
|
logger.log("Event processor \"" + tmp.id + "\" dropped event");
|
|
}
|
|
tmp2 = dependencyMap(6339).DEBUG_BUILD && tmp.id && null === tmpResult;
|
|
if (obj.isThenable(tmpResult)) {
|
|
tmpResult.then((arg0) => callback(closure_0, arg0, outer1_2, outer1_3 + 1).then(closure_0)).then(null, arg1);
|
|
const nextPromise = tmpResult.then((arg0) => callback(closure_0, arg0, outer1_2, outer1_3 + 1).then(closure_0));
|
|
} else {
|
|
const promise = callback(dependencyMap, tmpResult, callback, num + 1);
|
|
callback(dependencyMap, tmpResult, callback, num + 1).then(arg0).then(null, arg1);
|
|
const nextPromise2 = callback(dependencyMap, tmpResult, callback, num + 1).then(arg0);
|
|
}
|
|
obj = dependencyMap(6318);
|
|
}
|
|
}
|
|
arg0(dependencyMap2);
|
|
});
|
|
}
|
|
arg5.notifyEventProcessors = notifyEventProcessors;
|