chore: do not clobber global tracker objects

This commit is contained in:
Daniel Roe 2025-01-17 22:24:41 +00:00
parent 9ec5f48b9d
commit df85543314
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -47,9 +47,9 @@ function captureStackTrace () {
export const leading = ` export const leading = `
const ___captureStackTrace = ${captureStackTrace.toString()}; const ___captureStackTrace = ${captureStackTrace.toString()};
globalThis.___calls = {}; globalThis.___calls ||= {};
globalThis.___timings = {}; globalThis.___timings ||= {};
globalThis.___callers = {};` globalThis.___callers ||= {};`
function onExit () { function onExit () {
if (globalThis.___logged) { return } if (globalThis.___logged) { return }