decord/source/1018_done.js

23 lines
460 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 1018
// Function ID: 1019
2026-07-20 16:05:17 +00:00
// Name: done
2026-07-29 08:29:29 +00:00
// Dependencies: [1019]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 1018 (done)
2026-07-23 10:11:24 +00:00
require("noop").prototype.done = function(arg0, arg1) {
2026-07-20 16:05:17 +00:00
const self = this;
let self2 = this;
if (arguments.length) {
const then = self.then;
self2 = then(...arguments);
}
self2.then(null, (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);
});
};
2026-07-23 10:11:24 +00:00
export { default } from "noop";