diff options
author | Javier Hernández <73640929+javihernant@users.noreply.github.com> | 2024-02-18 15:30:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-18 07:30:27 -0700 |
commit | 3c7057d5832bae61de7f5001df85d2505d6aa9db (patch) | |
tree | a17b9639d6f4a6f22d8c3d013f5b3089f926e4ac /ext/node/polyfills/internal/util | |
parent | c1fac11dfaf9d656b7361708d9faab1916eac846 (diff) |
fix: util.parseArgs() missing node:process import (#22405)
fix parseArgs() not working due to missing import of node:process
this commit fixes issue #22363
Diffstat (limited to 'ext/node/polyfills/internal/util')
-rw-r--r-- | ext/node/polyfills/internal/util/parse_args/parse_args.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/node/polyfills/internal/util/parse_args/parse_args.js b/ext/node/polyfills/internal/util/parse_args/parse_args.js index 2c208a897..8abe8a9f8 100644 --- a/ext/node/polyfills/internal/util/parse_args/parse_args.js +++ b/ext/node/polyfills/internal/util/parse_args/parse_args.js @@ -46,6 +46,8 @@ const { ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL, } = codes; +import process from "node:process"; + function getMainArgs() { // Work out where to slice process.argv for user supplied arguments. |