70 lines
1.8 KiB
JavaScript
70 lines
1.8 KiB
JavaScript
// Module ID: 6429
|
|
// Function ID: 57780
|
|
// Name: callFrameToStackFrame
|
|
// Dependencies: [6317, 6314, 6427]
|
|
|
|
// Module 6429 (callFrameToStackFrame)
|
|
const require = arg1;
|
|
const dependencyMap = arg6;
|
|
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;
|
|
}
|
|
let obj = require(6317) /* addNonEnumerableProperty */;
|
|
obj = { filename: replaced, module: arg2(replaced) };
|
|
let UNKNOWN_FUNCTION = location.functionName;
|
|
if (!UNKNOWN_FUNCTION) {
|
|
UNKNOWN_FUNCTION = require(6314) /* createStackParser */.UNKNOWN_FUNCTION;
|
|
}
|
|
obj.function = UNKNOWN_FUNCTION;
|
|
obj.colno = sum;
|
|
obj.lineno = sum1;
|
|
let filenameIsInAppResult;
|
|
if (replaced) {
|
|
filenameIsInAppResult = require(6427) /* filenameIsInApp */.filenameIsInApp(replaced);
|
|
const obj3 = require(6427) /* filenameIsInApp */;
|
|
}
|
|
obj.in_app = filenameIsInAppResult;
|
|
return obj.dropUndefinedKeys(obj);
|
|
};
|
|
arg5.watchdogTimer = function watchdogTimer(arg0, arg1, arg2, arg3) {
|
|
let closure_0 = arg1;
|
|
let closure_1 = arg2;
|
|
let closure_2 = arg3;
|
|
let closure_3 = arg0();
|
|
let c4 = false;
|
|
let c5 = true;
|
|
const timerId = setInterval(() => {
|
|
const timeMs = navigation.getTimeMs();
|
|
let tmp2 = false === c4;
|
|
if (tmp2) {
|
|
tmp2 = timeMs > closure_0 + closure_1;
|
|
}
|
|
if (tmp2) {
|
|
c4 = true;
|
|
if (c5) {
|
|
callback();
|
|
}
|
|
}
|
|
if (timeMs < closure_0 + closure_1) {
|
|
c4 = false;
|
|
}
|
|
}, 20);
|
|
return {
|
|
poll() {
|
|
navigation.reset();
|
|
},
|
|
enabled(arg0) {
|
|
let closure_5 = arg0;
|
|
}
|
|
};
|
|
};
|