decord/source/361_reject.js

73 lines
1.8 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 361
// Function ID: 5354
// Name: reject
2026-07-23 10:11:24 +00:00
// Dependencies: [44]
2026-07-20 16:05:17 +00:00
// Module 361 (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(() => {
if ("object" === typeof lib) {
if (null !== lib) {
if ("function" === typeof lib.gen) {
lib.gen().then(lib, outer2_2);
const genResult = lib.gen();
} else if ("function" === typeof lib.run) {
lib.run();
lib();
2026-07-20 16:05:17 +00:00
} else {
const _TypeError2 = TypeError;
const _HermesInternal = HermesInternal;
2026-07-23 10:11:24 +00:00
const typeError = new TypeError("Task \"" + lib.name + "\" missing gen or run.");
outer2_2(typeError);
2026-07-20 16:05:17 +00:00
}
}
}
2026-07-23 10:11:24 +00:00
if ("function" === typeof lib) {
lib();
lib();
2026-07-20 16:05:17 +00:00
} else {
const _TypeError = TypeError;
2026-07-23 10:11:24 +00:00
const typeError1 = new TypeError("Invalid task of type: " + typeof lib);
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;
},
clearInteractionHandle(arg0) {
2026-07-23 10:11:24 +00:00
require(44) /* invariant */(arg0, "InteractionManager: Must provide a handle to clear.");
2026-07-20 16:05:17 +00:00
},
addListener() {
return {
remove() {
}
};
},
setDeadline(arg0) {
}
};