From fc4b9c1d0752e750e21a4ee7703a17fa67bfd95b 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 2ac6f1c35c41b3..a9b6ad89a916c0 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) => {