decord/source/992_callFrameToStackFrame.js

74 lines
1.8 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 992
// Function ID: 993
2026-07-20 16:05:17 +00:00
// Name: callFrameToStackFrame
2026-07-29 08:29:29 +00:00
// Dependencies: [833, 991]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 992 (callFrameToStackFrame)
2026-08-24 06:08:38 +00:00
import createStackParser from "createStackParser" /* 833 */;
import filenameIsInApp from "filenameIsInApp" /* 991 */;
require = arg1;
2026-07-23 10:11:24 +00:00
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
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;
}
2026-07-29 08:29:29 +00:00
const obj = { filename: replaced, module: arg2(replaced), function: null, colno: null, lineno: null, in_app: null };
2026-07-20 16:05:17 +00:00
let UNKNOWN_FUNCTION = location.functionName;
if (!UNKNOWN_FUNCTION) {
2026-08-24 06:08:38 +00:00
UNKNOWN_FUNCTION = createStackParser.UNKNOWN_FUNCTION;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[2] = UNKNOWN_FUNCTION;
obj[3] = sum;
obj[4] = sum1;
2026-07-20 16:05:17 +00:00
let filenameIsInAppResult;
if (replaced) {
2026-08-24 06:08:38 +00:00
filenameIsInAppResult = filenameIsInApp.filenameIsInApp(replaced);
const obj2 = filenameIsInApp;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[5] = filenameIsInAppResult;
2026-07-20 16:05:17 +00:00
return obj;
};
arg5.watchdogTimer = function watchdogTimer(arg0, arg1, arg2, arg3) {
2026-08-24 06:08:38 +00:00
closure_0 = arg1;
closure_1 = arg2;
closure_2 = arg3;
closure_3 = arg0();
c4 = false;
c5 = true;
2026-07-20 16:05:17 +00:00
const timerId = setInterval(() => {
const timeMs = navigation.getTimeMs();
2026-07-23 10:11:24 +00:00
let tmp2 = false === c4;
2026-07-20 16:05:17 +00:00
if (tmp2) {
2026-07-23 10:11:24 +00:00
tmp2 = timeMs > closure_0 + closure_1;
2026-07-20 16:05:17 +00:00
}
if (tmp2) {
2026-07-23 10:11:24 +00:00
c4 = true;
if (c5) {
callback();
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
if (timeMs < closure_0 + closure_1) {
c4 = false;
2026-07-20 16:05:17 +00:00
}
}, 20);
return {
poll() {
navigation.reset();
},
enabled(arg0) {
2026-08-24 06:08:38 +00:00
closure_5 = arg0;
2026-07-20 16:05:17 +00:00
}
};
};