decord/source/1018_done.js
2026-08-24 06:08:38 +00:00

24 lines
471 B
JavaScript

// Module ID: 1018
// Function ID: 1019
// Name: done
// Dependencies: [1019]
// Module 1018 (done)
import noop from "noop" /* 1019 */;
noop.prototype.done = function(arg0, arg1) {
const self = this;
let self2 = this;
if (arguments.length) {
const then = self.then;
self2 = then(...arguments);
}
self2.then(null, (arg0) => {
closure_0 = arg0;
const timerId = setTimeout(() => {
throw closure_0;
}, 0);
});
};
export default noop;