mirror of
https://github.com/ylw00/qxVm.git
synced 2025-04-12 04:03:28 +08:00
Update vm_proxy.js
This commit is contained in:
parent
1f73a76633
commit
0aee712baa
4
qxVm_sanbox/env/TOOLS/vm_proxy.js
vendored
4
qxVm_sanbox/env/TOOLS/vm_proxy.js
vendored
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user