Lines Matching refs:variant
8 const variant = process.argv[process.argv.length - 1]; constant
10 case variant === 'main-thread': {
13 case variant === 'main-thread-exit': {
16 case variant.startsWith('worker-thread'): {
17 const worker = new Worker(__filename, { workerData: variant });
33 for (const { execArgv, variant, warnings } of [ property
34 { execArgv: ['--trace-exit'], variant: 'main-thread-exit', warnings: 1 }, property
35 { execArgv: [], variant: 'main-thread-exit', warnings: 0 }, property
36 { execArgv: ['--trace-exit'], variant: 'main-thread', warnings: 0 }, property
37 { execArgv: [], variant: 'main-thread', warnings: 0 }, property
38 { execArgv: ['--trace-exit'], variant: 'worker-thread-exit', warnings: 1 }, property
39 { execArgv: [], variant: 'worker-thread-exit', warnings: 0 }, property
40 { execArgv: ['--trace-exit'], variant: 'worker-thread', warnings: 0 }, property
41 { execArgv: [], variant: 'worker-thread', warnings: 0 }, property
44 await execFile(process.execPath, [...execArgv, __filename, variant]);
54 if (variant.startsWith('worker')) {