mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
chore: do not clobber global tracker objects
This commit is contained in:
parent
9ec5f48b9d
commit
df85543314
@ -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 }
|
||||||
|
Loading…
Reference in New Issue
Block a user