mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
fix: do not memoize Deno.ppid
(#23006)
Fixes https://github.com/denoland/deno/issues/23004
This commit is contained in:
parent
e45f433a16
commit
2f7b9660fa
1 changed files with 3 additions and 2 deletions
|
@ -370,7 +370,6 @@ function importScripts(...urls) {
|
||||||
|
|
||||||
const opArgs = memoizeLazy(() => op_bootstrap_args());
|
const opArgs = memoizeLazy(() => op_bootstrap_args());
|
||||||
const opPid = memoizeLazy(() => op_bootstrap_pid());
|
const opPid = memoizeLazy(() => op_bootstrap_pid());
|
||||||
const opPpid = memoizeLazy(() => op_ppid());
|
|
||||||
setNoColorFn(() => op_bootstrap_no_color() || !op_bootstrap_is_tty());
|
setNoColorFn(() => op_bootstrap_no_color() || !op_bootstrap_is_tty());
|
||||||
|
|
||||||
function formatException(error) {
|
function formatException(error) {
|
||||||
|
@ -716,7 +715,9 @@ function bootstrapMainRuntime(runtimeOptions) {
|
||||||
|
|
||||||
ObjectDefineProperties(finalDenoNs, {
|
ObjectDefineProperties(finalDenoNs, {
|
||||||
pid: core.propGetterOnly(opPid),
|
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()),
|
noColor: core.propGetterOnly(() => op_bootstrap_no_color()),
|
||||||
args: core.propGetterOnly(opArgs),
|
args: core.propGetterOnly(opArgs),
|
||||||
mainModule: core.propGetterOnly(() => op_main_module()),
|
mainModule: core.propGetterOnly(() => op_main_module()),
|
||||||
|
|
Loading…
Reference in a new issue