-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
repl: preload missing constants
module
#6494
Conversation
The `constants` module was previously missing from the list of builtin modules which are available without requiring in the repl and using the `--eval` command line option. This patch adds it to that list.
LGTM if CI is ok: https://ci.nodejs.org/job/node-test-pull-request/2449/ |
I think it's missing because it's not documented (=private) |
@vkurchatkin Thought so too, until I saw the PR for adding |
I don't think it's actually private though; if it were, it would be in |
@Fishrock123 I’d consider the My understanding so far was that, essentially, the modules that are considered public are the ones that are documented, and |
@ChALkeR ... are you able to pull together some stats on how many modules are using |
@jasnell Done: https://gist.github.com/ChALkeR/b4d8cca42890718229f82933c721bbe2. Most of that is error handling, e.g. |
LGTM. |
LGTM |
Yep.. Thanks @ChALkeR! LGTM. |
I can't think of a reason why we wouldn't document it? |
Putting this on hold because #6534 seeks to deprecate the module completely :) |
Closing in favour of #6534. |
Checklist
Affected core subsystem(s)
repl, node cli
Description of change
The
constants
module was previously missing from the list of builtin modules which are available without requiring in the repl and using the--eval
command line option. This patch adds it to that list.