use undefined

This commit is contained in:
Vendicated 2025-02-17 02:03:27 +01:00
parent 5f547a1611
commit 5082553723
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -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. // 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. // 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 // 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 // their i18n Proxy "caches" by setting each accessed property to the return, so try to delete
Reflect.deleteProperty(value, PROXY_CHECK); Reflect.deleteProperty(value, PROXY_CHECK);
return true; return true;