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
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue