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 = `
const ___captureStackTrace = ${captureStackTrace.toString()};
globalThis.___calls = {};
globalThis.___timings = {};
globalThis.___callers = {};`
globalThis.___calls ||= {};
globalThis.___timings ||= {};
globalThis.___callers ||= {};`
function onExit () {
if (globalThis.___logged) { return }