Anna Henningsen 39d905e293 node: make builtin libs available for --eval
Make the builtin libraries available for the `--eval` and
`--print` CLI options, using the same mechanism that the
REPL uses.

This renders workarounds like `node -e 'require("fs").doStuff()'`
unnecessary.

As part of this, the list of builtin modules and the code for
adding the corresponding properties to the target context is moved
to `internal/module.js`, and the previously missing `repl` entry
is added.

PR-URL: https://github.com/nodejs/node/pull/6207
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-04-18 15:31:32 -07:00
..
2016-03-21 17:33:42 -04:00
2016-03-14 08:48:08 -07:00
2016-03-14 08:48:03 -07:00
2016-03-10 14:09:26 +01:00
2016-04-12 17:21:29 -04:00
2016-03-02 23:22:29 +01:00
2016-02-21 14:59:35 -05:00