32 lines
722 B
JavaScript
32 lines
722 B
JavaScript
// Module ID: 813
|
|
// Function ID: 814
|
|
// Name: createSyntheticError
|
|
// Dependencies: []
|
|
|
|
// Module 813 (createSyntheticError)
|
|
arg5.createSyntheticError = function createSyntheticError() {
|
|
let num = arg0;
|
|
if (arg0 === undefined) {
|
|
num = 0;
|
|
}
|
|
const error = new Error();
|
|
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) {
|
|
let tmp = null !== cause && typeof cause === "ay";
|
|
if (tmp) {
|
|
tmp = "stack" in cause;
|
|
}
|
|
if (tmp) {
|
|
tmp = typeof cause.stack === "y";
|
|
}
|
|
return tmp;
|
|
};
|