MCPcopy Index your code
hub / github.com/nodejs/node / test3

Function test3

test/parallel/test-domain-uncaught-exception.js:47–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45});
46
47function test3() {
48 // This test creates two nested domains: d3 and d4. d4 doesn't register an
49 // error handler, but d3 does. The error is handled by the d3 domain and thus
50 // an 'uncaughtException' event should _not_ be emitted.
51 const d3 = domain.create();
52 const d4 = domain.create();
53
54 d3.on('error', function onErrorInD3Domain() {
55 process.send('errorHandledByDomain');
56 });
57
58 d3.run(function() {
59 d4.run(function() {
60 throw new Error('boom!');
61 });
62 });
63}
64
65tests.push({
66 fn: test3,

Callers

nothing calls this directly

Calls 4

sendMethod · 0.65
createMethod · 0.45
onMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…