summaryrefslogtreecommitdiff
path: root/test/fixtures/printA.js
diff options
context:
space:
mode:
authorAli Ijaz Sheikh <ofrobots@google.com>2015-02-17 14:37:37 -0800
committerRod Vagg <rod@vagg.org>2015-03-19 21:42:16 +1100
commit1514b8235540c3ade0e2ab2c1a3ac0b286ea736e (patch)
tree664e79dc522363644f49a311f579f59076b89762 /test/fixtures/printA.js
parentf600111d82ba208ff14c1b87ab0bef6eedeff4e7 (diff)
downloadandroid-node-v8-1514b8235540c3ade0e2ab2c1a3ac0b286ea736e.tar.gz
android-node-v8-1514b8235540c3ade0e2ab2c1a3ac0b286ea736e.tar.bz2
android-node-v8-1514b8235540c3ade0e2ab2c1a3ac0b286ea736e.zip
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/printA.js')
-rw-r--r--test/fixtures/printA.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/fixtures/printA.js b/test/fixtures/printA.js
new file mode 100644
index 0000000000..30a56425de
--- /dev/null
+++ b/test/fixtures/printA.js
@@ -0,0 +1 @@
+console.log('A')