From 14fc4ddabc6373ca291855c8dae02550667d5057 Mon Sep 17 00:00:00 2001 From: XadillaX Date: Mon, 31 May 2021 17:00:46 +0800 Subject: [PATCH] child_process: allow `options.cwd` receive a URL PR-URL: https://github.com/nodejs/node/pull/38862 Fixes: https://github.com/nodejs/node/issues/38861 Reviewed-By: James M Snell Reviewed-By: Antoine du Hamel --- doc/api/child_process.md | 42 ++++++++++++++++++++----- lib/child_process.js | 10 ++++-- test/parallel/test-child-process-cwd.js | 19 +++++++++++ 3 files changed, 61 insertions(+), 10 deletions(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index d277cda93ba474..60fe875ace69eb 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -146,6 +146,10 @@ exec('"my script.cmd" a b', (err, stdout, stderr) => {