mirror of
https://github.com/denoland/deno.git
synced 2025-09-30 22:21:15 +00:00
feat(unstable): Deno.ppid (#6539)
This commit is contained in:
parent
231899695d
commit
a2bf61d1ae
6 changed files with 91 additions and 2 deletions
|
@ -96,10 +96,11 @@ export function bootstrapMainRuntime(): void {
|
|||
}
|
||||
});
|
||||
|
||||
const { args, cwd, noColor, pid, repl, unstableFlag } = runtime.start();
|
||||
const { args, cwd, noColor, pid, ppid, repl, unstableFlag } = runtime.start();
|
||||
|
||||
Object.defineProperties(denoNs, {
|
||||
pid: readOnly(pid),
|
||||
ppid: readOnly(ppid),
|
||||
noColor: readOnly(noColor),
|
||||
args: readOnly(Object.freeze(args)),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue