From 5082553723268e7a487efc3a4cb4569b43a6d894 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 17 Feb 2025 02:03:27 +0100 Subject: [PATCH] use undefined --- src/webpack/webpack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webpack/webpack.ts b/src/webpack/webpack.ts index ddcb97a15..30180a7e9 100644 --- a/src/webpack/webpack.ts +++ b/src/webpack/webpack.ts @@ -121,7 +121,7 @@ function shouldIgnoreValue(value: any) { // Discord might export a Proxy that returns non-null values for any property key which would pass all findByProps filters. // One example of this is their i18n Proxy. However, that is already covered by the IntlMessagesProxy check above. // As a fallback if they ever change the name or add a new Proxy, use a unique string to detect such proxies and ignore them - if (value[PROXY_CHECK]) { + if (value[PROXY_CHECK] !== void 0) { // their i18n Proxy "caches" by setting each accessed property to the return, so try to delete Reflect.deleteProperty(value, PROXY_CHECK); return true;