(obj, prop)
| 36 | function makeNoopProxy(target = {}) { |
| 37 | return new Proxy(target, { |
| 38 | get(obj, prop) { |
| 39 | if (prop === Symbol.toPrimitive) { |
| 40 | return () => ''; |
| 41 | } |
| 42 | if (prop in obj) { |
| 43 | return obj[prop]; |
| 44 | } |
| 45 | return function noop() { |
| 46 | return undefined; |
| 47 | }; |
| 48 | }, |
| 49 | }); |
| 50 | } |
| 51 |
nothing calls this directly
no outgoing calls
no test coverage detected