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

Function test2

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

Source from the content-addressed store, hash-verified

31});
32
33function 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
42tests.push({
43 fn: test2,

Callers

nothing calls this directly

Calls 2

createMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…