summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/js/99_main.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index e97eed9ff..1a1f78119 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -370,7 +370,6 @@ function importScripts(...urls) {
const opArgs = memoizeLazy(() => op_bootstrap_args());
const opPid = memoizeLazy(() => op_bootstrap_pid());
-const opPpid = memoizeLazy(() => op_ppid());
setNoColorFn(() => op_bootstrap_no_color() || !op_bootstrap_is_tty());
function formatException(error) {
@@ -716,7 +715,9 @@ function bootstrapMainRuntime(runtimeOptions) {
ObjectDefineProperties(finalDenoNs, {
pid: core.propGetterOnly(opPid),
- ppid: core.propGetterOnly(opPpid),
+ // `ppid` should not be memoized.
+ // https://github.com/denoland/deno/issues/23004
+ ppid: core.propGetterOnly(() => op_ppid()),
noColor: core.propGetterOnly(() => op_bootstrap_no_color()),
args: core.propGetterOnly(opArgs),
mainModule: core.propGetterOnly(() => op_main_module()),