Skip to content

Commit 42167f1

Browse files
committed
lib: fix realpathSync resolving to invalid path (nodejs#54200)
1 parent 561bc87 commit 42167f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) {
383383
return StartExecution(env, "internal/main/watch_mode");
384384
}
385385

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

0 commit comments

Comments
 (0)