({ n, sync, data, method })
| 45 | } |
| 46 | |
| 47 | function main({ n, sync, data, method }) { |
| 48 | data = globalThis.crypto.getRandomValues(Buffer.alloc(data)); |
| 49 | switch (sync) { |
| 50 | case 'createHash': return measureLegacy(n, data, method); |
| 51 | case 'subtle': return measureSubtle(n, data, method); |
| 52 | } |
| 53 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…