From a4073703fd628622e2b22f59a2b9252cce4db9d7 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Tue, 28 May 2024 17:44:34 -0300 Subject: [PATCH] explain UNCONFIGURABLE_PROPERTIES better --- src/utils/misc.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/misc.tsx b/src/utils/misc.tsx index 089bd541c..424386a26 100644 --- a/src/utils/misc.tsx +++ b/src/utils/misc.tsx @@ -100,7 +100,7 @@ export function pluralise(amount: number, singular: string, plural = singular + return amount === 1 ? `${amount} ${singular}` : `${amount} ${plural}`; } -/** Unconfigurable properties for proxies */ +/** Proxies which have an internal target but use a function as the main target require these properties to be unconfigurable */ export const UNCONFIGURABLE_PROPERTIES = ["arguments", "caller", "prototype"]; export function interpolateIfDefined(strings: TemplateStringsArray, ...args: any[]) {