The `execArgv` field can be used to specify Node.js-specific arguments that will be automatically applied when the single executable application starts. This allows application developers to configure Node.js runtime options without requiring end users to be aware of these flags. PR-URL: https://github.com/nodejs/node/pull/59314 Refs: https://github.com/nodejs/node/issues/51688 Refs: https://github.com/nodejs/node/issues/55573 Refs: https://github.com/nodejs/single-executable/issues/100 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Darshan Sen <raisinten@gmail.com>
6 lines
233 B
JavaScript
6 lines
233 B
JavaScript
const assert = require('assert');
|
|
|
|
console.log('process.argv:', JSON.stringify(process.argv));
|
|
assert.strictEqual(process.argv[2], 'user-arg');
|
|
assert.deepStrictEqual(process.execArgv, []);
|
|
console.log('empty execArgv test passed');
|