Print key and value in lazy proxy's setter error message
This commit is contained in:
parent
fdd62d6e09
commit
af9b2a8d19
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@ export function createLazyProxy<T extends object>(objectFunc: () => T): T {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
return (calculateObj() as any)[key];
|
return (calculateObj() as any)[key];
|
||||||
},
|
},
|
||||||
set() {
|
set(target, key, value) {
|
||||||
console.error("Layers and features are shallow readonly");
|
console.error("Layers and features are shallow readonly", key, value);
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
has(target, key) {
|
has(target, key) {
|
||||||
|
|
Loading…
Reference in a new issue