summaryrefslogtreecommitdiff
path: root/cli/js/runtime_main.ts
diff options
context:
space:
mode:
authoruki00a <uki00a@gmail.com>2020-07-08 23:35:45 +0900
committerGitHub <noreply@github.com>2020-07-08 10:35:45 -0400
commita2bf61d1ae3ba2ff746a98ad2f0a96b6fc7782d0 (patch)
treed7d074acd7de7ecdc3094c5f6b0c5ded696f3e39 /cli/js/runtime_main.ts
parent231899695d410d8d8c14c0936682a90e98bc6fd3 (diff)
feat(unstable): Deno.ppid (#6539)
Diffstat (limited to 'cli/js/runtime_main.ts')
-rw-r--r--cli/js/runtime_main.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/js/runtime_main.ts b/cli/js/runtime_main.ts
index 25a6b0f93..0c579626b 100644
--- a/cli/js/runtime_main.ts
+++ b/cli/js/runtime_main.ts
@@ -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)),
});