decord/source/7894_callFrameToStackFrame.js

67 lines
1.7 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7894
// Function ID: 7895
2026-07-20 16:05:17 +00:00
// Name: callFrameToStackFrame
2026-08-24 06:08:38 +00:00
// Dependencies: [7782, 7779, 7892]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 7894 (callFrameToStackFrame)
import createStackParser from "createStackParser" /* 7779 */;
import addNonEnumerableProperty from "addNonEnumerableProperty" /* 7782 */;
require = arg1;
2026-07-23 10:11:24 +00:00
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
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-08-24 06:08:38 +00:00
let obj = addNonEnumerableProperty;
obj = { filename: replaced, module: arg2(replaced), function: location.functionName || createStackParser.UNKNOWN_FUNCTION, colno: sum, lineno: sum1, in_app: null };
2026-07-20 16:05:17 +00:00
let filenameIsInAppResult;
if (replaced) {
2026-08-24 06:08:38 +00:00
filenameIsInAppResult = tmp4(7892).filenameIsInApp(replaced);
const tmp4Result = tmp4(7892);
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.dropUndefinedKeys(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
}
};
};