decord/source/9850_isErrorWithCode.js

22 lines
593 B
JavaScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 9850
// Function ID: 9851
2026-07-20 16:05:17 +00:00
// Name: isErrorWithCode
// Dependencies: []
2026-07-31 08:44:05 +00:00
// Module 9850 (isErrorWithCode)
2026-07-29 08:29:29 +00:00
arg5.errorCodes = Object.freeze({ OPERATION_CANCELED: "OPERATION_CANCELED", IN_PROGRESS: "ASYNC_OP_IN_PROGRESS", UNABLE_TO_OPEN_FILE_TYPE: "UNABLE_TO_OPEN_FILE_TYPE", NULL_PRESENTER: "NULL_PRESENTER" });
arg5.isErrorWithCode = (arg0) => {
2026-07-20 16:05:17 +00:00
let tmp = arg0 instanceof Error;
if (!tmp) {
2026-07-29 08:29:29 +00:00
let tmp2 = typeof arg0 === "ay";
if (typeof arg0 !== "window") {
2026-07-20 16:05:17 +00:00
tmp2 = null != arg0;
}
tmp = tmp2;
}
if (tmp) {
tmp = "code" in arg0;
}
return tmp;
};