chore: do not clobber global tracker objects

This commit is contained in:
Daniel Roe 2025-01-17 22:24:41 +00:00
parent 1c7f91e23d
commit 632e7f941f
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 }