diff options
author | Ali Ijaz Sheikh <ofrobots@google.com> | 2015-02-17 14:37:37 -0800 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2015-03-19 21:42:16 +1100 |
commit | 1514b8235540c3ade0e2ab2c1a3ac0b286ea736e (patch) | |
tree | 664e79dc522363644f49a311f579f59076b89762 /test/fixtures/printC.js | |
parent | f600111d82ba208ff14c1b87ab0bef6eedeff4e7 (diff) | |
download | node-new-1514b8235540c3ade0e2ab2c1a3ac0b286ea736e.tar.gz |
src: add -r/--require flags for preloading modules
This patch adds a command line option (-r/--require) that allows one
to provide modules on the command line that will be 'required' during
node startup. This can be useful for debugging, tracing, memory leak
analysis etc. to be preloaded without explicit changes to the user
script. The option can be repeated to preload multiple modules.
PR-URL: https://github.com/iojs/io.js/pull/881
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
Diffstat (limited to 'test/fixtures/printC.js')
-rw-r--r-- | test/fixtures/printC.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/fixtures/printC.js b/test/fixtures/printC.js new file mode 100644 index 0000000000..9a203c981e --- /dev/null +++ b/test/fixtures/printC.js @@ -0,0 +1 @@ +console.log('C') |