11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ciconst { mustNotCall } = require('../common');
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ci// Regression test for https://github.com/nodejs/node/issues/44768
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_ciconst { throws } = require('assert');
71cb0ef41Sopenharmony_ciconst {
81cb0ef41Sopenharmony_ci  exec,
91cb0ef41Sopenharmony_ci  execFile,
101cb0ef41Sopenharmony_ci  execFileSync,
111cb0ef41Sopenharmony_ci  execSync,
121cb0ef41Sopenharmony_ci  fork,
131cb0ef41Sopenharmony_ci  spawn,
141cb0ef41Sopenharmony_ci  spawnSync,
151cb0ef41Sopenharmony_ci} = require('child_process');
161cb0ef41Sopenharmony_ci
171cb0ef41Sopenharmony_ci// Tests for the 'command' argument
181cb0ef41Sopenharmony_ci
191cb0ef41Sopenharmony_cithrows(() => exec(`${process.execPath} ${__filename} AAA BBB\0XXX CCC`, mustNotCall()), {
201cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
211cb0ef41Sopenharmony_ci  message: /The argument 'command' must be a string without null bytes/
221cb0ef41Sopenharmony_ci});
231cb0ef41Sopenharmony_ci
241cb0ef41Sopenharmony_cithrows(() => exec('BBB\0XXX AAA CCC', mustNotCall()), {
251cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
261cb0ef41Sopenharmony_ci  message: /The argument 'command' must be a string without null bytes/
271cb0ef41Sopenharmony_ci});
281cb0ef41Sopenharmony_ci
291cb0ef41Sopenharmony_cithrows(() => execSync(`${process.execPath} ${__filename} AAA BBB\0XXX CCC`), {
301cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
311cb0ef41Sopenharmony_ci  message: /The argument 'command' must be a string without null bytes/
321cb0ef41Sopenharmony_ci});
331cb0ef41Sopenharmony_ci
341cb0ef41Sopenharmony_cithrows(() => execSync('BBB\0XXX AAA CCC'), {
351cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
361cb0ef41Sopenharmony_ci  message: /The argument 'command' must be a string without null bytes/
371cb0ef41Sopenharmony_ci});
381cb0ef41Sopenharmony_ci
391cb0ef41Sopenharmony_ci// Tests for the 'file' argument
401cb0ef41Sopenharmony_ci
411cb0ef41Sopenharmony_cithrows(() => spawn('BBB\0XXX'), {
421cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
431cb0ef41Sopenharmony_ci  message: /The argument 'file' must be a string without null bytes/
441cb0ef41Sopenharmony_ci});
451cb0ef41Sopenharmony_ci
461cb0ef41Sopenharmony_cithrows(() => execFile('BBB\0XXX', mustNotCall()), {
471cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
481cb0ef41Sopenharmony_ci  message: /The argument 'file' must be a string without null bytes/
491cb0ef41Sopenharmony_ci});
501cb0ef41Sopenharmony_ci
511cb0ef41Sopenharmony_cithrows(() => execFileSync('BBB\0XXX'), {
521cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
531cb0ef41Sopenharmony_ci  message: /The argument 'file' must be a string without null bytes/
541cb0ef41Sopenharmony_ci});
551cb0ef41Sopenharmony_ci
561cb0ef41Sopenharmony_cithrows(() => spawn('BBB\0XXX'), {
571cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
581cb0ef41Sopenharmony_ci  message: /The argument 'file' must be a string without null bytes/
591cb0ef41Sopenharmony_ci});
601cb0ef41Sopenharmony_ci
611cb0ef41Sopenharmony_cithrows(() => spawnSync('BBB\0XXX'), {
621cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
631cb0ef41Sopenharmony_ci  message: /The argument 'file' must be a string without null bytes/
641cb0ef41Sopenharmony_ci});
651cb0ef41Sopenharmony_ci
661cb0ef41Sopenharmony_ci// Tests for the 'modulePath' argument
671cb0ef41Sopenharmony_ci
681cb0ef41Sopenharmony_cithrows(() => fork('BBB\0XXX'), {
691cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
701cb0ef41Sopenharmony_ci  message: /The argument 'modulePath' must be a string or Uint8Array without null bytes/
711cb0ef41Sopenharmony_ci});
721cb0ef41Sopenharmony_ci
731cb0ef41Sopenharmony_ci// Tests for the 'args' argument
741cb0ef41Sopenharmony_ci
751cb0ef41Sopenharmony_ci// Not testing exec() and execSync() because these accept 'args' as a part of
761cb0ef41Sopenharmony_ci// 'command' as space-separated arguments.
771cb0ef41Sopenharmony_ci
781cb0ef41Sopenharmony_cithrows(() => execFile(process.execPath, [__filename, 'AAA', 'BBB\0XXX', 'CCC'], mustNotCall()), {
791cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
801cb0ef41Sopenharmony_ci  message: /The argument 'args\[2\]' must be a string without null bytes/
811cb0ef41Sopenharmony_ci});
821cb0ef41Sopenharmony_ci
831cb0ef41Sopenharmony_cithrows(() => execFileSync(process.execPath, [__filename, 'AAA', 'BBB\0XXX', 'CCC']), {
841cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
851cb0ef41Sopenharmony_ci  message: /The argument 'args\[2\]' must be a string without null bytes/
861cb0ef41Sopenharmony_ci});
871cb0ef41Sopenharmony_ci
881cb0ef41Sopenharmony_cithrows(() => fork(__filename, ['AAA', 'BBB\0XXX', 'CCC']), {
891cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
901cb0ef41Sopenharmony_ci  message: /The argument 'args\[2\]' must be a string without null bytes/
911cb0ef41Sopenharmony_ci});
921cb0ef41Sopenharmony_ci
931cb0ef41Sopenharmony_cithrows(() => spawn(process.execPath, [__filename, 'AAA', 'BBB\0XXX', 'CCC']), {
941cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
951cb0ef41Sopenharmony_ci  message: /The argument 'args\[2\]' must be a string without null bytes/
961cb0ef41Sopenharmony_ci});
971cb0ef41Sopenharmony_ci
981cb0ef41Sopenharmony_cithrows(() => spawnSync(process.execPath, [__filename, 'AAA', 'BBB\0XXX', 'CCC']), {
991cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1001cb0ef41Sopenharmony_ci  message: /The argument 'args\[2\]' must be a string without null bytes/
1011cb0ef41Sopenharmony_ci});
1021cb0ef41Sopenharmony_ci
1031cb0ef41Sopenharmony_ci// Tests for the 'options.cwd' argument
1041cb0ef41Sopenharmony_ci
1051cb0ef41Sopenharmony_cithrows(() => exec(process.execPath, { cwd: 'BBB\0XXX' }, mustNotCall()), {
1061cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1071cb0ef41Sopenharmony_ci  message: /The property 'options\.cwd' must be a string or Uint8Array without null bytes/
1081cb0ef41Sopenharmony_ci});
1091cb0ef41Sopenharmony_ci
1101cb0ef41Sopenharmony_cithrows(() => execFile(process.execPath, { cwd: 'BBB\0XXX' }, mustNotCall()), {
1111cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1121cb0ef41Sopenharmony_ci  message: /The property 'options\.cwd' must be a string or Uint8Array without null bytes/
1131cb0ef41Sopenharmony_ci});
1141cb0ef41Sopenharmony_ci
1151cb0ef41Sopenharmony_cithrows(() => execFileSync(process.execPath, { cwd: 'BBB\0XXX' }), {
1161cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1171cb0ef41Sopenharmony_ci  message: /The property 'options\.cwd' must be a string or Uint8Array without null bytes/
1181cb0ef41Sopenharmony_ci});
1191cb0ef41Sopenharmony_ci
1201cb0ef41Sopenharmony_cithrows(() => execSync(process.execPath, { cwd: 'BBB\0XXX' }), {
1211cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1221cb0ef41Sopenharmony_ci  message: /The property 'options\.cwd' must be a string or Uint8Array without null bytes/
1231cb0ef41Sopenharmony_ci});
1241cb0ef41Sopenharmony_ci
1251cb0ef41Sopenharmony_cithrows(() => fork(__filename, { cwd: 'BBB\0XXX' }), {
1261cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1271cb0ef41Sopenharmony_ci  message: /The property 'options\.cwd' must be a string or Uint8Array without null bytes/
1281cb0ef41Sopenharmony_ci});
1291cb0ef41Sopenharmony_ci
1301cb0ef41Sopenharmony_cithrows(() => spawn(process.execPath, { cwd: 'BBB\0XXX' }), {
1311cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1321cb0ef41Sopenharmony_ci  message: /The property 'options\.cwd' must be a string or Uint8Array without null bytes/
1331cb0ef41Sopenharmony_ci});
1341cb0ef41Sopenharmony_ci
1351cb0ef41Sopenharmony_cithrows(() => spawnSync(process.execPath, { cwd: 'BBB\0XXX' }), {
1361cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1371cb0ef41Sopenharmony_ci  message: /The property 'options\.cwd' must be a string or Uint8Array without null bytes/
1381cb0ef41Sopenharmony_ci});
1391cb0ef41Sopenharmony_ci
1401cb0ef41Sopenharmony_ci// Tests for the 'options.argv0' argument
1411cb0ef41Sopenharmony_ci
1421cb0ef41Sopenharmony_cithrows(() => exec(process.execPath, { argv0: 'BBB\0XXX' }, mustNotCall()), {
1431cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1441cb0ef41Sopenharmony_ci  message: /The property 'options\.argv0' must be a string without null bytes/
1451cb0ef41Sopenharmony_ci});
1461cb0ef41Sopenharmony_ci
1471cb0ef41Sopenharmony_cithrows(() => execFile(process.execPath, { argv0: 'BBB\0XXX' }, mustNotCall()), {
1481cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1491cb0ef41Sopenharmony_ci  message: /The property 'options\.argv0' must be a string without null bytes/
1501cb0ef41Sopenharmony_ci});
1511cb0ef41Sopenharmony_ci
1521cb0ef41Sopenharmony_cithrows(() => execFileSync(process.execPath, { argv0: 'BBB\0XXX' }), {
1531cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1541cb0ef41Sopenharmony_ci  message: /The property 'options\.argv0' must be a string without null bytes/
1551cb0ef41Sopenharmony_ci});
1561cb0ef41Sopenharmony_ci
1571cb0ef41Sopenharmony_cithrows(() => execSync(process.execPath, { argv0: 'BBB\0XXX' }), {
1581cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1591cb0ef41Sopenharmony_ci  message: /The property 'options\.argv0' must be a string without null bytes/
1601cb0ef41Sopenharmony_ci});
1611cb0ef41Sopenharmony_ci
1621cb0ef41Sopenharmony_cithrows(() => fork(__filename, { argv0: 'BBB\0XXX' }), {
1631cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1641cb0ef41Sopenharmony_ci  message: /The property 'options\.argv0' must be a string without null bytes/
1651cb0ef41Sopenharmony_ci});
1661cb0ef41Sopenharmony_ci
1671cb0ef41Sopenharmony_cithrows(() => spawn(process.execPath, { argv0: 'BBB\0XXX' }), {
1681cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1691cb0ef41Sopenharmony_ci  message: /The property 'options\.argv0' must be a string without null bytes/
1701cb0ef41Sopenharmony_ci});
1711cb0ef41Sopenharmony_ci
1721cb0ef41Sopenharmony_cithrows(() => spawnSync(process.execPath, { argv0: 'BBB\0XXX' }), {
1731cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1741cb0ef41Sopenharmony_ci  message: /The property 'options\.argv0' must be a string without null bytes/
1751cb0ef41Sopenharmony_ci});
1761cb0ef41Sopenharmony_ci
1771cb0ef41Sopenharmony_ci// Tests for the 'options.shell' argument
1781cb0ef41Sopenharmony_ci
1791cb0ef41Sopenharmony_cithrows(() => exec(process.execPath, { shell: 'BBB\0XXX' }, mustNotCall()), {
1801cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1811cb0ef41Sopenharmony_ci  message: /The property 'options\.shell' must be a string without null bytes/
1821cb0ef41Sopenharmony_ci});
1831cb0ef41Sopenharmony_ci
1841cb0ef41Sopenharmony_cithrows(() => execFile(process.execPath, { shell: 'BBB\0XXX' }, mustNotCall()), {
1851cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1861cb0ef41Sopenharmony_ci  message: /The property 'options\.shell' must be a string without null bytes/
1871cb0ef41Sopenharmony_ci});
1881cb0ef41Sopenharmony_ci
1891cb0ef41Sopenharmony_cithrows(() => execFileSync(process.execPath, { shell: 'BBB\0XXX' }), {
1901cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1911cb0ef41Sopenharmony_ci  message: /The property 'options\.shell' must be a string without null bytes/
1921cb0ef41Sopenharmony_ci});
1931cb0ef41Sopenharmony_ci
1941cb0ef41Sopenharmony_cithrows(() => execSync(process.execPath, { shell: 'BBB\0XXX' }), {
1951cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
1961cb0ef41Sopenharmony_ci  message: /The property 'options\.shell' must be a string without null bytes/
1971cb0ef41Sopenharmony_ci});
1981cb0ef41Sopenharmony_ci
1991cb0ef41Sopenharmony_ci// Not testing fork() because it doesn't accept the shell option (internally it
2001cb0ef41Sopenharmony_ci// explicitly sets shell to false).
2011cb0ef41Sopenharmony_ci
2021cb0ef41Sopenharmony_cithrows(() => spawn(process.execPath, { shell: 'BBB\0XXX' }), {
2031cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2041cb0ef41Sopenharmony_ci  message: /The property 'options\.shell' must be a string without null bytes/
2051cb0ef41Sopenharmony_ci});
2061cb0ef41Sopenharmony_ci
2071cb0ef41Sopenharmony_cithrows(() => spawnSync(process.execPath, { shell: 'BBB\0XXX' }), {
2081cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2091cb0ef41Sopenharmony_ci  message: /The property 'options\.shell' must be a string without null bytes/
2101cb0ef41Sopenharmony_ci});
2111cb0ef41Sopenharmony_ci
2121cb0ef41Sopenharmony_ci// Tests for the 'options.env' argument
2131cb0ef41Sopenharmony_ci
2141cb0ef41Sopenharmony_cithrows(() => exec(process.execPath, { env: { 'AAA': 'BBB\0XXX' } }, mustNotCall()), {
2151cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2161cb0ef41Sopenharmony_ci  message: /The property 'options\.env\['AAA'\]' must be a string without null bytes/
2171cb0ef41Sopenharmony_ci});
2181cb0ef41Sopenharmony_ci
2191cb0ef41Sopenharmony_cithrows(() => exec(process.execPath, { env: { 'BBB\0XXX': 'AAA' } }, mustNotCall()), {
2201cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2211cb0ef41Sopenharmony_ci  message: /The property 'options\.env\['BBB\0XXX'\]' must be a string without null bytes/
2221cb0ef41Sopenharmony_ci});
2231cb0ef41Sopenharmony_ci
2241cb0ef41Sopenharmony_cithrows(() => execFile(process.execPath, { env: { 'AAA': 'BBB\0XXX' } }, mustNotCall()), {
2251cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2261cb0ef41Sopenharmony_ci  message: /The property 'options\.env\['AAA'\]' must be a string without null bytes/
2271cb0ef41Sopenharmony_ci});
2281cb0ef41Sopenharmony_ci
2291cb0ef41Sopenharmony_cithrows(() => execFile(process.execPath, { env: { 'BBB\0XXX': 'AAA' } }, mustNotCall()), {
2301cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2311cb0ef41Sopenharmony_ci  message: /The property 'options\.env\['BBB\0XXX'\]' must be a string without null bytes/
2321cb0ef41Sopenharmony_ci});
2331cb0ef41Sopenharmony_ci
2341cb0ef41Sopenharmony_cithrows(() => execFileSync(process.execPath, { env: { 'AAA': 'BBB\0XXX' } }), {
2351cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2361cb0ef41Sopenharmony_ci  message: /The property 'options\.env\['AAA'\]' must be a string without null bytes/
2371cb0ef41Sopenharmony_ci});
2381cb0ef41Sopenharmony_ci
2391cb0ef41Sopenharmony_cithrows(() => execFileSync(process.execPath, { env: { 'BBB\0XXX': 'AAA' } }), {
2401cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2411cb0ef41Sopenharmony_ci  message: /The property 'options\.env\['BBB\0XXX'\]' must be a string without null bytes/
2421cb0ef41Sopenharmony_ci});
2431cb0ef41Sopenharmony_ci
2441cb0ef41Sopenharmony_cithrows(() => execSync(process.execPath, { env: { 'AAA': 'BBB\0XXX' } }), {
2451cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2461cb0ef41Sopenharmony_ci  message: /The property 'options\.env\['AAA'\]' must be a string without null bytes/
2471cb0ef41Sopenharmony_ci});
2481cb0ef41Sopenharmony_ci
2491cb0ef41Sopenharmony_cithrows(() => execSync(process.execPath, { env: { 'BBB\0XXX': 'AAA' } }), {
2501cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2511cb0ef41Sopenharmony_ci  message: /The property 'options\.env\['BBB\0XXX'\]' must be a string without null bytes/
2521cb0ef41Sopenharmony_ci});
2531cb0ef41Sopenharmony_ci
2541cb0ef41Sopenharmony_cithrows(() => fork(__filename, { env: { 'AAA': 'BBB\0XXX' } }), {
2551cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2561cb0ef41Sopenharmony_ci  message: /The property 'options\.env\['AAA'\]' must be a string without null bytes/
2571cb0ef41Sopenharmony_ci});
2581cb0ef41Sopenharmony_ci
2591cb0ef41Sopenharmony_cithrows(() => fork(__filename, { env: { 'BBB\0XXX': 'AAA' } }), {
2601cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2611cb0ef41Sopenharmony_ci  message: /The property 'options\.env\['BBB\0XXX'\]' must be a string without null bytes/
2621cb0ef41Sopenharmony_ci});
2631cb0ef41Sopenharmony_ci
2641cb0ef41Sopenharmony_cithrows(() => spawn(process.execPath, { env: { 'AAA': 'BBB\0XXX' } }), {
2651cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2661cb0ef41Sopenharmony_ci  message: /The property 'options\.env\['AAA'\]' must be a string without null bytes/
2671cb0ef41Sopenharmony_ci});
2681cb0ef41Sopenharmony_ci
2691cb0ef41Sopenharmony_cithrows(() => spawn(process.execPath, { env: { 'BBB\0XXX': 'AAA' } }), {
2701cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2711cb0ef41Sopenharmony_ci  message: /The property 'options\.env\['BBB\0XXX'\]' must be a string without null bytes/
2721cb0ef41Sopenharmony_ci});
2731cb0ef41Sopenharmony_ci
2741cb0ef41Sopenharmony_cithrows(() => spawnSync(process.execPath, { env: { 'AAA': 'BBB\0XXX' } }), {
2751cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2761cb0ef41Sopenharmony_ci  message: /The property 'options\.env\['AAA'\]' must be a string without null bytes/
2771cb0ef41Sopenharmony_ci});
2781cb0ef41Sopenharmony_ci
2791cb0ef41Sopenharmony_cithrows(() => spawnSync(process.execPath, { env: { 'BBB\0XXX': 'AAA' } }), {
2801cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2811cb0ef41Sopenharmony_ci  message: /The property 'options\.env\['BBB\0XXX'\]' must be a string without null bytes/
2821cb0ef41Sopenharmony_ci});
2831cb0ef41Sopenharmony_ci
2841cb0ef41Sopenharmony_ci// Tests for the 'options.execPath' argument
2851cb0ef41Sopenharmony_cithrows(() => fork(__filename, { execPath: 'BBB\0XXX' }), {
2861cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2871cb0ef41Sopenharmony_ci  message: /The property 'options\.execPath' must be a string without null bytes/
2881cb0ef41Sopenharmony_ci});
2891cb0ef41Sopenharmony_ci
2901cb0ef41Sopenharmony_ci// Tests for the 'options.execArgv' argument
2911cb0ef41Sopenharmony_cithrows(() => fork(__filename, { execArgv: ['AAA', 'BBB\0XXX', 'CCC'] }), {
2921cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
2931cb0ef41Sopenharmony_ci  message: /The property 'options\.execArgv\[1\]' must be a string without null bytes/
2941cb0ef41Sopenharmony_ci});
295