[v10.x] src: allows escaping NODE_OPTIONS with backslashes
The characters specified within NODE_OPTIONS can now be escaped, which
is handy especially in conjunction with --require
(where the file path
might happen to contain spaces that shouldn't cause the option to be
split into two).
This PR adds v10.x-compatible commits in addition to backport of #24065.
Fixes: nodejs#12971 Refs: https://github.com/microsoft/vscode-js-debug/issues/769 PR-URL: nodejs#24065 Reviewed-By: @addaleax
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines