New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent require()ing executable-only files #789
Labels
Comments
Failing loudly sounds like a good behavior. That way, you can't even accidentally require the file without node exiting. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was a point raised in #786. We can prevent
require()
ing files with:This might be a good idea for files which we only intend to execute (e.g.
bin/shjs
).I would also consider rewriting as:
The text was updated successfully, but these errors were encountered: