decord/source/968_callFrameToStackFrame.js
2026-07-21 22:01:30 +00:00

66 lines
1.6 KiB
JavaScript

// Module ID: 968
// Function ID: 10446
// Name: callFrameToStackFrame
// Dependencies: []
// Module 968 (callFrameToStackFrame)
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
arg5.callFrameToStackFrame = function callFrameToStackFrame(location, str) {
let replaced;
if (str) {
replaced = str.replace(/^file:\/\//, "");
}
let sum;
if (location.location.columnNumber) {
sum = location.location.columnNumber + 1;
}
let sum1;
if (location.location.lineNumber) {
sum1 = location.location.lineNumber + 1;
}
const obj = { filename: replaced, module: arg2(replaced) };
let UNKNOWN_FUNCTION = location.functionName;
if (!UNKNOWN_FUNCTION) {
UNKNOWN_FUNCTION = str(arg6[0]).UNKNOWN_FUNCTION;
}
obj.function = UNKNOWN_FUNCTION;
obj.colno = sum;
obj.lineno = sum1;
let filenameIsInAppResult;
if (replaced) {
filenameIsInAppResult = str(arg6[1]).filenameIsInApp(replaced);
const obj2 = str(arg6[1]);
}
obj.in_app = filenameIsInAppResult;
return obj;
};
arg5.watchdogTimer = function watchdogTimer(arg0, arg1, arg2, arg3) {
const arg6 = arg2;
let closure_3 = arg0();
let closure_4 = false;
let closure_5 = true;
const timerId = setInterval(() => {
const timeMs = navigation.getTimeMs();
let tmp2 = false === closure_4;
if (tmp2) {
tmp2 = timeMs > arg1 + arg2;
}
if (tmp2) {
closure_4 = true;
if (closure_5) {
arg3();
}
}
if (timeMs < arg1 + arg2) {
closure_4 = false;
}
}, 20);
return {
poll() {
navigation.reset();
},
enabled(arg0) {
let closure_5 = arg0;
}
};
};