Lines Matching defs:const
3 const common = require('../common');
4 const assert = require('assert');
5 const { execFile, execFileSync } = require('child_process');
6 const { getEventListeners } = require('events');
7 const { getSystemErrorName } = require('util');
8 const fixtures = require('../common/fixtures');
9 const os = require('os');
11 const fixture = fixtures.path('exit.js');
12 const echoFixture = fixtures.path('echo.js');
13 const execOpts = { encoding: 'utf8', shell: true };
30 const errorString = `Error: Command failed: ${process.execPath}`;
31 const code = -1;
32 const callback = common.mustCall((err, stdout, stderr) => {
41 const child = execFile(process.execPath, callback);
54 const ac = new AbortController();
55 const { signal } = ac;
57 const test = () => {
58 const check = common.mustCall((err) => {
73 const signal = AbortSignal.abort();
75 const check = common.mustCall((err) => {
87 const callback = common.mustNotCall();
94 const ac = new AbortController();
95 const { signal } = ac;
97 const callback = common.mustCall((err) => {
106 const file = 'echo';
107 const args = ['foo', 'bar'];
115 const execFileSyncStdout = execFileSync(file, args, options);