Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
lib: use primordial
replace spread operator with priordial
  • Loading branch information
hotpineapple committed Aug 8, 2025
commit 4a3bbca29fca6bf6ff0f455afc800abc16da4d90
3 changes: 2 additions & 1 deletion lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,8 @@ function normalizeSpawnArguments(file, args, options) {
'DEP0190');
emittedDEP0190Already = true;
}
const command = ArrayPrototypeJoin([file, ...args], ' ');

const command = args.length > 0 ? `${file} ${ArrayPrototypeJoin(args, ' ')}` : file;
// Set the shell, switches, and commands.
if (process.platform === 'win32') {
if (typeof options.shell === 'string')
Expand Down