1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 15:49:44 -05:00

fix: util.parseArgs() missing node:process import (#22405)

fix parseArgs() not working due to missing import of node:process

this commit fixes issue #22363
This commit is contained in:
Javier Hernández 2024-02-18 15:30:27 +01:00 committed by GitHub
parent c1fac11dfa
commit 3c7057d583
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View file

@ -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.

View file

@ -315,3 +315,10 @@ Deno.test({
);
},
});
Deno.test({
name: "[util] parseArgs() with no args works",
fn() {
util.parseArgs({});
},
});