()
| 14 | const tests = []; |
| 15 | |
| 16 | function test1() { |
| 17 | // Throwing from an async callback from within a domain that doesn't have |
| 18 | // an error handler must result in emitting the process' uncaughtException |
| 19 | // event. |
| 20 | const d = domain.create(); |
| 21 | d.run(function() { |
| 22 | setTimeout(function onTimeout() { |
| 23 | throw new Error('boom!'); |
| 24 | }, 1); |
| 25 | }); |
| 26 | } |
| 27 | |
| 28 | tests.push({ |
| 29 | fn: test1, |
nothing calls this directly
no test coverage detected
searching dependent graphs…