From 632e7f941f881acb692a5f4c37362f49a5e73171 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 17 Jan 2025 22:24:41 +0000 Subject: [PATCH] chore: do not clobber global tracker objects --- debug/plugins/timings-babel.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debug/plugins/timings-babel.mjs b/debug/plugins/timings-babel.mjs index 178e71a641..75d8b64ab1 100644 --- a/debug/plugins/timings-babel.mjs +++ b/debug/plugins/timings-babel.mjs @@ -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 }