()
| 31 | }); |
| 32 | |
| 33 | function test2() { |
| 34 | // Throwing from from within a domain that doesn't have an error handler must |
| 35 | // result in emitting the process' uncaughtException event. |
| 36 | const d2 = domain.create(); |
| 37 | d2.run(function() { |
| 38 | throw new Error('boom!'); |
| 39 | }); |
| 40 | } |
| 41 | |
| 42 | tests.push({ |
| 43 | fn: test2, |