explain UNCONFIGURABLE_PROPERTIES better

This commit is contained in:
Nuckyz 2024-05-28 17:44:34 -03:00
parent 84b9e3fec1
commit a4073703fd
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -100,7 +100,7 @@ export function pluralise(amount: number, singular: string, plural = singular +
return amount === 1 ? `${amount} ${singular}` : `${amount} ${plural}`; 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 const UNCONFIGURABLE_PROPERTIES = ["arguments", "caller", "prototype"];
export function interpolateIfDefined(strings: TemplateStringsArray, ...args: any[]) { export function interpolateIfDefined(strings: TemplateStringsArray, ...args: any[]) {