decord/source/9810_isErrorWithCode.js

22 lines
469 B
JavaScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 9810
2026-07-21 22:01:30 +00:00
// Function ID: 76131
2026-07-20 16:05:17 +00:00
// Name: isErrorWithCode
// Dependencies: []
2026-07-21 06:55:02 +00:00
// Module 9810 (isErrorWithCode)
2026-07-21 22:01:30 +00:00
arg5.errorCodes = Object.freeze({ source: 24, width: 32, height: null });
2026-07-20 16:05:17 +00:00
arg5.isErrorWithCode = function isErrorWithCode(arg0) {
let tmp = arg0 instanceof Error;
if (!tmp) {
let tmp2 = "object" === typeof arg0;
if (tmp2) {
tmp2 = null != arg0;
}
tmp = tmp2;
}
if (tmp) {
tmp = "code" in arg0;
}
return tmp;
};