summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/child_process.ts
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2024-03-06 19:10:47 +0530
committerGitHub <noreply@github.com>2024-03-06 13:40:47 +0000
commit7542d1050a61583d279bdd9c1cf05eaad71f4548 (patch)
tree031fb7b1431aa6a70dc08671ce866fa7f5f83e5f /ext/node/polyfills/child_process.ts
parent01bc2f530ea311a231f19b8f620b6cc9f94f0886 (diff)
fix(ext/node): strip `--enable-source-maps` from argv (#22743)
Fixes https://github.com/denoland/deno/issues/21750
Diffstat (limited to 'ext/node/polyfills/child_process.ts')
-rw-r--r--ext/node/polyfills/child_process.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/node/polyfills/child_process.ts b/ext/node/polyfills/child_process.ts
index 46a19983d..2aba88d63 100644
--- a/ext/node/polyfills/child_process.ts
+++ b/ext/node/polyfills/child_process.ts
@@ -120,9 +120,13 @@ export function fork(
if (flag.startsWith("--max-old-space-size")) {
execArgv.splice(index, 1);
v8Flags.push(flag);
+ } else if (flag.startsWith("--enable-source-maps")) {
+ // https://github.com/denoland/deno/issues/21750
+ execArgv.splice(index, 1);
}
}
}
+
const stringifiedV8Flags: string[] = [];
if (v8Flags.length > 0) {
stringifiedV8Flags.push("--v8-flags=" + v8Flags.join(","));