decord/source/6429_callFrameToStackFrame.js

71 lines
1.8 KiB
JavaScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 6429
// Function ID: 57780
2026-07-20 16:05:17 +00:00
// Name: callFrameToStackFrame
2026-07-25 08:10:48 +00:00
// Dependencies: [6317, 6314, 6427]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 6429 (callFrameToStackFrame)
2026-07-23 10:11:24 +00:00
const require = arg1;
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-07-25 08:10:48 +00:00
let obj = require(6317) /* addNonEnumerableProperty */;
2026-07-20 16:05:17 +00:00
obj = { filename: replaced, module: arg2(replaced) };
let UNKNOWN_FUNCTION = location.functionName;
if (!UNKNOWN_FUNCTION) {
2026-07-25 08:10:48 +00:00
UNKNOWN_FUNCTION = require(6314) /* createStackParser */.UNKNOWN_FUNCTION;
2026-07-20 16:05:17 +00:00
}
obj.function = UNKNOWN_FUNCTION;
obj.colno = sum;
obj.lineno = sum1;
let filenameIsInAppResult;
if (replaced) {
2026-07-25 08:10:48 +00:00
filenameIsInAppResult = require(6427) /* filenameIsInApp */.filenameIsInApp(replaced);
const obj3 = require(6427) /* filenameIsInApp */;
2026-07-20 16:05:17 +00:00
}
obj.in_app = filenameIsInAppResult;
return obj.dropUndefinedKeys(obj);
};
arg5.watchdogTimer = function watchdogTimer(arg0, arg1, arg2, arg3) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg1;
let closure_1 = arg2;
let closure_2 = arg3;
2026-07-20 16:05:17 +00:00
let closure_3 = arg0();
2026-07-23 10:11:24 +00:00
let c4 = false;
let 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) {
let closure_5 = arg0;
}
};
};