diff options
author | Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> | 2024-10-16 11:25:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-16 18:25:25 +0000 |
commit | f7dba52133904a9e4ca0468e2c98894992ea2e42 (patch) | |
tree | d6767e6786173a1ba5c6013c8b8cc69450e47ca0 /ext/node/polyfills/child_process.ts | |
parent | 4385020d14cc1f2523cadec7e19011845edd8393 (diff) |
fix(child_process): map node `--no-warnings` flag to `--quiet` (#26288)
Closes https://github.com/denoland/deno/issues/25899
Diffstat (limited to 'ext/node/polyfills/child_process.ts')
-rw-r--r-- | ext/node/polyfills/child_process.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/node/polyfills/child_process.ts b/ext/node/polyfills/child_process.ts index c37dfc410..eda718ff3 100644 --- a/ext/node/polyfills/child_process.ts +++ b/ext/node/polyfills/child_process.ts @@ -132,6 +132,8 @@ export function fork( rm = 2; } execArgv.splice(index, rm); + } else if (flag.startsWith("--no-warnings")) { + execArgv[index] = "--quiet"; } else { index++; } |