node/test/parallel/test-child-process-spawnsync-non-string-args.js
Antoine du Hamel 54d7d14f89
src: coerce spawnSync args to string once
PR-URL: https://github.com/nodejs/node/pull/62633
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
2026-04-14 19:20:13 +00:00

7 lines
229 B
JavaScript

'use strict';
const common = require('../common');
const { spawnSync } = require('child_process');
const stateful = {
toString: common.mustCall(() => ';'),
};
spawnSync(process.execPath, ['-e', stateful], { stdio: 'ignore' });