Function
main
({ n, showProxy, isProxy })
Source from the content-addressed store, hash-verified
| 10 | }); |
| 11 | |
| 12 | function main({ n, showProxy, isProxy }) { |
| 13 | let proxyA = {}; |
| 14 | let proxyB = () => {}; |
| 15 | if (isProxy) { |
| 16 | proxyA = new Proxy(proxyA, { get: () => {} }); |
| 17 | proxyB = new Proxy(proxyB, {}); |
| 18 | } |
| 19 | bench.start(); |
| 20 | for (let i = 0; i < n; i += 1) |
| 21 | util.inspect({ a: proxyA, b: proxyB }, { showProxy }); |
| 22 | bench.end(n); |
| 23 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…