decord/source/813_createSyntheticError.js

33 lines
725 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 813
// Function ID: 814
// Name: createSyntheticError
// Dependencies: []
// Module 813 (createSyntheticError)
arg5.createSyntheticError = function createSyntheticError() {
let num = arg0;
if (arg0 === undefined) {
num = 0;
}
2026-08-24 06:08:38 +00:00
error = new Error();
2026-07-29 08:29:29 +00:00
error.framesToPop = num + 3;
return error;
};
arg5.getFramesToPop = function getFramesToPop(closure_3) {
let num = 0;
if (undefined !== closure_3.framesToPop) {
num = closure_3.framesToPop;
}
return num;
};
arg5.isErrorLike = function isErrorLike(cause) {
2026-08-04 21:03:28 +00:00
let tmp = null !== cause && typeof cause === "object";
2026-07-29 08:29:29 +00:00
if (tmp) {
tmp = "stack" in cause;
}
if (tmp) {
2026-08-04 21:03:28 +00:00
tmp = typeof cause.stack === "string";
2026-07-29 08:29:29 +00:00
}
return tmp;
};