Skip to content

Commit 077f0c5

Browse files
authored
fix(ext/node): ignore some Node.js specific flags (#29461)
1 parent d8879ee commit 077f0c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/node/polyfills/internal/child_process.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,10 @@ function toDenoArgs(args: string[]): string[] {
12201220
if (flagInfo === undefined) {
12211221
if (arg === "--no-warnings") {
12221222
denoArgs.push("--quiet");
1223+
} else if (arg === "--expose-internals") {
1224+
// internals are always exposed in Deno.
1225+
} else if (arg === "--permission") {
1226+
// ignore --permission flag
12231227
} else {
12241228
// Not a known flag that expects a value. Just copy it to the output.
12251229
denoArgs.push(arg);

0 commit comments

Comments
 (0)