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

Function test1

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

Source from the content-addressed store, hash-verified

14const tests = [];
15
16function 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
28tests.push({
29 fn: test1,

Callers

nothing calls this directly

Calls 3

setTimeoutFunction · 0.50
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…