()
| 14 | const hrtime = process.hrtime.bigint; |
| 15 | |
| 16 | function loop() { |
| 17 | const start = hrtime(); |
| 18 | while (1) { |
| 19 | const current = hrtime(); |
| 20 | const span = (current - start) / NS_PER_MS; |
| 21 | if (span >= 2000n) { |
| 22 | throw new Error( |
| 23 | `escaped timeout at ${span} milliseconds!`); |
| 24 | } |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | assert.rejects(async () => { |
| 29 | const module = new vm.SourceTextModule( |
nothing calls this directly
no test coverage detected
searching dependent graphs…