decord/source/469_reject.js

83 lines
2.2 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 469
// Function ID: 470
2026-07-20 16:05:17 +00:00
// Name: reject
2026-07-29 08:29:29 +00:00
// Dependencies: [184, 38]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 469 (reject)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
function reject(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
const timerId = setTimeout(() => {
2026-07-23 10:11:24 +00:00
throw closure_0;
2026-07-20 16:05:17 +00:00
}, 0);
}
arg5.default = {
2026-07-23 10:11:24 +00:00
Events: { interactionStart: "interactionStart", interactionComplete: "interactionComplete" },
2026-07-20 16:05:17 +00:00
runAfterInteractions(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
const promise = new Promise((arg0) => {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
const immediate = setImmediate(() => {
2026-08-04 21:03:28 +00:00
if (typeof callback === "object") {
2026-07-29 08:29:29 +00:00
if (null !== obj) {
2026-08-04 21:03:28 +00:00
if (typeof obj.gen === "function") {
2026-07-29 08:29:29 +00:00
obj.gen().then(callback, outer2_2);
const genResult = obj.gen();
2026-08-04 21:03:28 +00:00
} else if (typeof obj.run === "function") {
2026-07-29 08:29:29 +00:00
try {
obj.run();
callback();
} catch (tmp12) {
outer2_2(callback(outer2_1[0]).default(tmp12));
const obj3 = callback(outer2_1[0]);
}
2026-07-20 16:05:17 +00:00
} else {
const _TypeError2 = TypeError;
const _HermesInternal = HermesInternal;
2026-07-29 08:29:29 +00:00
const typeError = new TypeError("Task \"" + obj.name + "\" missing gen or run.");
2026-07-23 10:11:24 +00:00
outer2_2(typeError);
2026-07-20 16:05:17 +00:00
}
}
}
2026-08-04 21:03:28 +00:00
if (typeof callback === "function") {
2026-07-29 08:29:29 +00:00
try {
obj();
callback();
} catch (tmp4) {
outer2_2(callback(outer2_1[0]).default(tmp4));
const obj2 = callback(outer2_1[0]);
}
2026-07-20 16:05:17 +00:00
} else {
const _TypeError = TypeError;
2026-07-29 08:29:29 +00:00
const typeError1 = new TypeError("Invalid task of type: " + typeof obj);
2026-07-23 10:11:24 +00:00
outer2_2(typeError1);
2026-07-20 16:05:17 +00:00
}
});
});
const then = promise.then;
return {
then: then.bind(promise),
cancel() {
clearImmediate(closure_1);
}
};
},
createInteractionHandle() {
return -1;
},
2026-07-29 08:29:29 +00:00
clearInteractionHandle(interactionHandle) {
require(38)(interactionHandle, "InteractionManager: Must provide a handle to clear.");
2026-07-20 16:05:17 +00:00
},
2026-07-29 08:29:29 +00:00
addListener(arg0, arg1, arg2) {
2026-07-20 16:05:17 +00:00
return {
remove() {
}
};
},
setDeadline(arg0) {
}
};