Skip to content

Commit

Permalink
fix: can't execute /dev/stdin on linux (#54200)
Browse files Browse the repository at this point in the history
  • Loading branch information
CGQAQ committed Aug 20, 2024
1 parent 561bc87 commit c831a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) {
return StartExecution(env, "internal/main/watch_mode");
}

if (!first_argv.empty() && first_argv != "-") {
if (!first_argv.empty() && first_argv != "-" && first_argv != "/dev/stdin") {
return StartExecution(env, "internal/main/run_main_module");
}

Expand Down

0 comments on commit c831a1b

Please sign in to comment.