Update vm_proxy.js

This commit is contained in:
开始 2023-08-01 14:40:54 +08:00 committed by GitHub
parent 1f73a76633
commit 0aee712baa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ lwVm.proxy = function (obj, objname, type) {
let result_type = get_attribute_type(result);
if (result instanceof Object) {
if (Object.getOwnPropertyDescriptor(target, propKey)?.writable === false) {
if (Object.getOwnPropertyDescriptor(target, propKey).writable === false) {
console.log(`getting propKey-> ${WatchName}.${propKey} it is non-writable`)
} else {
if (typeof result === "function") {
@ -239,4 +239,4 @@ lwVm.proxy_chained = function (obj_, obj_name) {
}
}
return new Proxy(obj_, my_handler(obj_name, 30));
}
}