decord/source/996_finally.js

23 lines
577 B
JavaScript
Raw Normal View History

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