Uh oh!
There was an error while loading. Please reload this page.
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/ |
vkurchatkin
commented
Apr 30, 2016
I think it's missing because it's not documented (=private) |
addaleax
commented
Apr 30, 2016
@vkurchatkin Thought so too, until I saw the PR for adding |
Fishrock123
commented
May 1, 2016
I don't think it's actually private though; if it were, it would be in |
addaleax
commented
May 1, 2016
@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 |
ChALkeR
commented
May 1, 2016
@jasnell Done: https://gist.github.com/ChALkeR/b4d8cca42890718229f82933c721bbe2. Most of that is error handling, e.g. |
bnoordhuis
commented
May 1, 2016
LGTM. |
cjihrig
commented
May 1, 2016
LGTM |
jasnell
commented
May 1, 2016
Yep.. Thanks @ChALkeR! LGTM. |
Fishrock123
commented
May 1, 2016
I can't think of a reason why we wouldn't document it? |
addaleax
commented
May 2, 2016
Putting this on hold because #6534 seeks to deprecate the module completely :) |
addaleax
commented
May 13, 2016
Closing in favour of #6534. |
Checklist
Affected core subsystem(s)
repl, node cli
Description of change
The
constantsmodule was previously missing from the list of builtin modules which are available without requiring in the repl and using the--evalcommand line option. This patch adds it to that list.