decord/source/994_done.js

23 lines
458 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 994
2026-07-25 08:10:48 +00:00
// Function ID: 10680
2026-07-20 16:05:17 +00:00
// Name: done
2026-07-23 10:11:24 +00:00
// Dependencies: [995]
2026-07-20 16:05:17 +00:00
// Module 994 (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";