lib: ensure --check flag works with --require
--eval
, --print
, and --check
-with-piped-input work with --require
.
However, --check
with a file path does not. This PR fixes #18425 (closed).
Checklist
-
tests and/or benchmarks are included -
commit message follows commit guidelines