(getCLS, setCLS)
| 134 | } |
| 135 | |
| 136 | function getServeAwait(getCLS, setCLS) { |
| 137 | return async function serve(req, res) { |
| 138 | setCLS(Math.random()); |
| 139 | await sleep(10); |
| 140 | await read(__filename); |
| 141 | if (res.destroyed) return; |
| 142 | res.setHeader('content-type', 'application/json'); |
| 143 | res.end(JSON.stringify({ cls: getCLS() })); |
| 144 | }; |
| 145 | } |
| 146 | |
| 147 | function getServeCallbacks(getCLS, setCLS) { |
| 148 | return function serve(req, res) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…