mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(ext/node): export geteuid from node:process (#23840)
Fixes https://github.com/denoland/deno/issues/23827
This commit is contained in:
parent
f6c6e768c8
commit
a31b81394b
2 changed files with 15 additions and 9 deletions
|
@ -6,6 +6,7 @@ import process, {
|
|||
argv,
|
||||
argv0 as importedArgv0,
|
||||
env,
|
||||
geteuid,
|
||||
pid as importedPid,
|
||||
platform as importedPlatform,
|
||||
} from "node:process";
|
||||
|
@ -879,6 +880,7 @@ Deno.test("process.geteuid", () => {
|
|||
if (Deno.build.os === "windows") {
|
||||
assertEquals(process.geteuid, undefined);
|
||||
} else {
|
||||
assert(geteuid);
|
||||
assert(typeof process.geteuid?.() === "number");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue