* Proxing property access of target. * We can do unwrapping and other things here.
(target: AnyObject)
| 41 | * We can do unwrapping and other things here. |
| 42 | */ |
| 43 | function setupAccessControl(target: AnyObject): void { |
| 44 | if ( |
| 45 | !isPlainObject(target) || |
| 46 | isRaw(target) || |
| 47 | isArray(target) || |
| 48 | isRef(target) || |
| 49 | isComponentInstance(target) || |
| 50 | accessModifiedSet.has(target) |
| 51 | ) |
| 52 | return |
| 53 | |
| 54 | accessModifiedSet.set(target, true) |
| 55 | |
| 56 | const keys = Object.keys(target) |
| 57 | for (let i = 0; i < keys.length; i++) { |
| 58 | defineAccessControl(target, keys[i]) |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Auto unwrapping when access property |
no test coverage detected
searching dependent graphs…