Lines Matching refs:domain
6 // checks that the proper domain error handlers are called when they should
11 const domain = require('domain');
17 // Throwing from an async callback from within a domain that doesn't have
20 const d = domain.create();
34 // Throwing from from within a domain that doesn't have an error handler must
36 const d2 = domain.create();
49 // error handler, but d3 does. The error is handled by the d3 domain and thus
51 const d3 = domain.create();
52 const d4 = domain.create();
73 // operations like timer callbacks are bound to the domain that was active
78 const d5 = domain.create();
79 const d6 = domain.create();
101 // error handler, so throwing within that domain should not emit an uncaught
103 const d7 = domain.create();
104 const d8 = domain.create();
123 // error handler, so throwing within that domain in an async callback should
126 const d9 = domain.create();
127 const d10 = domain.create();