diff --git a/src/utils/lazy.ts b/src/utils/lazy.ts index 4edc56d0d..664d4e114 100644 --- a/src/utils/lazy.ts +++ b/src/utils/lazy.ts @@ -65,7 +65,7 @@ export function proxyLazy(factory: () => T, attempts = 5, isChild = fal let isSameTick = true; if (!isChild) setTimeout(() => isSameTick = false, 0); - const proxyDummy = Object.assign(function () { }, { + const proxyDummy = Object.assign(function ProxyDummy() { }, { [proxyLazyGet]() { if (!proxyDummy[proxyLazyCache]) { if (!get.$$vencordLazyFailed()) { diff --git a/src/utils/proxyInner.ts b/src/utils/proxyInner.ts index 698363c71..24018a1d6 100644 --- a/src/utils/proxyInner.ts +++ b/src/utils/proxyInner.ts @@ -47,7 +47,7 @@ export function proxyInner( let isSameTick = true; if (!isChild) setTimeout(() => isSameTick = false, 0); - const proxyDummy = Object.assign(function () { }, { + const proxyDummy = Object.assign(function ProxyDummy() { }, { [proxyInnerGet]: function () { if (proxyDummy[proxyInnerValue] == null) { throw new Error(errMsg);