decord/source/176_finally.js

23 lines
575 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 176
// Function ID: 177
2026-07-20 16:05:17 +00:00
// Name: finally
2026-07-29 08:29:29 +00:00
// Dependencies: [177]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 176 (finally)
2026-07-23 10:11:24 +00:00
require("noop").prototype.finally = function(arg0) {
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
return this.then((arg0) => {
2026-07-23 10:11:24 +00:00
const callback = arg0;
const obj = callback(outer1_1[0]);
return callback(outer1_1[0]).resolve(callback()).then(() => closure_0);
2026-07-20 16:05:17 +00:00
}, (arg0) => {
2026-07-23 10:11:24 +00:00
const callback = arg0;
const obj = callback(outer1_1[0]);
return callback(outer1_1[0]).resolve(callback()).then(() => {
throw closure_0;
2026-07-20 16:05:17 +00:00
});
});
};
2026-07-23 10:11:24 +00:00
export { default } from "noop";