GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — lib: replace string concatenation with template · nodejs/node@a935806

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • child_process.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/child_process.js‎

Copy file name to clipboardExpand all lines: lib/child_process.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ exports.execFile = function(file /*, args, options, callback*/) {
266266
}
267267

268268
if (args.length !== 0)
269-
cmd += ' ' + args.join(' ');
269+
cmd += ` ${args.join(' ')}`;
270270

271271
if (!ex) {
272272
ex = new Error('Command failed: ' + cmd + '\n' + stderr);
@@ -475,7 +475,7 @@ function normalizeSpawnArguments(file, args, options) {
475475
var envPairs = [];
476476

477477
for (var key in env) {
478-
envPairs.push(key + '=' + env[key]);
478+
envPairs.push(`${key}=${env[key]}`);
479479
}
480480

481481
_convertCustomFds(options);
@@ -570,7 +570,7 @@ function checkExecSyncError(ret, args, cmd) {
570570
var msg = 'Command failed: ';
571571
msg += cmd || args.join(' ');
572572
if (ret.stderr && ret.stderr.length > 0)
573-
msg += '\n' + ret.stderr.toString();
573+
msg += `\n${ret.stderr.toString()}`;
574574
err = new Error(msg);
575575
}
576576
if (err) {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.