(script)
| 4 | import { describe, it } from 'node:test'; |
| 5 | |
| 6 | function wrapScriptInEvalWorker(script) { |
| 7 | return ` |
| 8 | import { Worker } from 'node:worker_threads'; |
| 9 | new Worker(${JSON.stringify(script)}, { eval: true }); |
| 10 | `; |
| 11 | } |
| 12 | |
| 13 | function convertScriptSourceToDataUrl(script) { |
| 14 | return new URL(`data:text/javascript,${encodeURIComponent(script)}`); |
no outgoing calls
no test coverage detected