From af9b2a8d19744775b7ed9a398dd730f9349a168f Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Thu, 31 Mar 2022 22:48:11 -0500 Subject: [PATCH] Print key and value in lazy proxy's setter error message --- src/util/proxies.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/proxies.ts b/src/util/proxies.ts index ce1a312..575779b 100644 --- a/src/util/proxies.ts +++ b/src/util/proxies.ts @@ -36,8 +36,8 @@ export function createLazyProxy(objectFunc: () => T): T { // eslint-disable-next-line @typescript-eslint/no-explicit-any return (calculateObj() as any)[key]; }, - set() { - console.error("Layers and features are shallow readonly"); + set(target, key, value) { + console.error("Layers and features are shallow readonly", key, value); return false; }, has(target, key) {