mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 01:15:58 +00:00
chore: do not clobber global tracker objects
This commit is contained in:
parent
1c7f91e23d
commit
632e7f941f
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user