Lines Matching refs:common
23 const common = require('../common');
37 if (common.isWindows) {
38 worker1.on('error', common.mustCall((err) => {
46 worker1.on('message', common.mustCall((msg) => {
51 worker2.on('message', common.mustCall((msg) => {
59 worker2.on('exit', common.mustCall((code, signal) => {
64 worker1.on('exit', common.mustCall((code, signal) => {
71 process.on('message', common.mustCallAtLeast((msg) => {
76 const socket1 = dgram.createSocket('udp4', common.mustNotCall());
77 const socket2 = dgram.createSocket('udp4', common.mustNotCall());
78 const socket3 = dgram.createSocket('udp4', common.mustNotCall());
86 common.mustNotCall() :
87 common.mustCall(() => {
95 common.mustNotCall() :
96 common.mustCall((err) => {
99 const address = common.localhostIPv4;
101 const opt2 = { address, port: common.PORT, exclusive: false };
102 const opt3 = { address, port: common.PORT + 1, exclusive: true };
103 socket1.bind(opt1, common.mustCall(() => {
106 socket2.bind(opt2, common.mustCall(() => {