decord/source/__polyfill/07xxx/module_7001.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

40 lines
1 KiB
JavaScript

// Module ID: 7001
// Function ID: 7002
// Dependencies: []
// Module 7001
function asyncGeneratorStep(arg0, fn, fn2, arg3, arg4, arg5, arg6) {
try {
const iter = arg0[arg5](arg6);
value = iter.value;
if (iter.done) {
fn(value);
} else {
const resolved = Promise.resolve(value);
resolved.then(arg3, arg4);
}
} catch (tmp13) {
fn2(tmp13);
}
}
export default function _asyncToGenerator(arg0) {
closure_0 = arg0;
return function() {
const self = this;
closure_1 = arguments;
return new Promise((arg0, arg1) => {
_self = arg0;
closure_1 = arg1;
function _next(arg0) {
self(applyResult, closure_0, closure_1, _next, _throw, "next", arg0);
}
function _throw(arg0) {
self(applyResult, closure_0, closure_1, _next, _throw, "throw", arg0);
}
const applyResult = _self.apply(self, closure_1);
closure_2 = applyResult;
asyncGeneratorStep(applyResult, arg0, arg1, _next, _throw, "next", undefined);
});
};
};