Lines Matching defs:child
7 const child = spawn(process.execPath, [ '-i' ], {
12 child.stdout.setEncoding('utf8');
13 child.stdout.on('data', function(c) {
17 child.stdin.end();
20 child.stdin.write = function(original) {
23 return original.call(child.stdin, c);
25 }(child.stdin.write);
27 child.stdout.once('data', function() {
28 child.stdin.write('let throws = 0;');
29 child.stdin.write('process.on("exit",function(){console.log(throws)});');
30 child.stdin.write('function thrower(){console.log("THROW",throws++);XXX};');
31 child.stdin.write('setTimeout(thrower);""\n');
36 child.stdin.write(`fs.readFile(${f}, thrower);\n`);
41 child.stdin.write('setTimeout(function() {\n' +
54 child.on('close', function(c) {