(target, prop, receiver)
| 59 | |
| 60 | const proxy = new Proxy({} as any, { |
| 61 | get(target, prop, receiver) { |
| 62 | if (prop === `__refProxy`) return true |
| 63 | if (prop === `__path`) return path |
| 64 | if (prop === `__type`) return undefined // Type is only for TypeScript inference |
| 65 | if (typeof prop === `symbol`) return Reflect.get(target, prop, receiver) |
| 66 | |
| 67 | const newPath = [...path, String(prop)] |
| 68 | return createProxy(newPath) |
| 69 | }, |
| 70 | |
| 71 | has(target, prop) { |
| 72 | if (prop === `__refProxy` || prop === `__path` || prop === `__type`) |
nothing calls this directly
no test coverage detected