Housekeeping & Make ESLint Happy

This commit is contained in:
SukkaW
2026-07-29 12:42:58 +08:00
parent 36ceefd3a3
commit 55870db2bc
10 changed files with 39 additions and 23 deletions

View File

@@ -201,7 +201,8 @@ function mergeWorkerTrace(
workerTimeOrigin: number
): void {
const offset = workerTimeOrigin - performance.timeOrigin;
for (const child of workerTraceResult.children) {
for (let i = 0, len = workerTraceResult.children.length; i < len; i++) {
const child = workerTraceResult.children[i];
parentSpan.traceResult.children.push(adjustTraceTimestamps(child, offset));
}
}