summaryrefslogtreecommitdiff
path: root/test/fixtures/define-global.js
diff options
context:
space:
mode:
authorEvan Lucas <evanlucas@me.com>2016-01-14 10:54:04 -0600
committerEvan Lucas <evanlucas@me.com>2016-01-18 10:57:45 -0600
commitff64a4c3951a945e372160ec7405264d72ff92dd (patch)
tree528ea52fe3e4bcd60431457b7c509ed9aac26db7 /test/fixtures/define-global.js
parent8d0ca107520347ec1aad049088b0577398262e14 (diff)
downloadandroid-node-v8-ff64a4c3951a945e372160ec7405264d72ff92dd.tar.gz
android-node-v8-ff64a4c3951a945e372160ec7405264d72ff92dd.tar.bz2
android-node-v8-ff64a4c3951a945e372160ec7405264d72ff92dd.zip
node: allow preload modules with -i
This gives us the ability to preload when using the node repl. This can be useful for doing things like creating aliases. Fixes: https://github.com/nodejs/node/issues/4661 PR-URL: https://github.com/nodejs/node/pull/4696 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/fixtures/define-global.js')
-rw-r--r--test/fixtures/define-global.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/fixtures/define-global.js b/test/fixtures/define-global.js
new file mode 100644
index 0000000000..82b6a5a72c
--- /dev/null
+++ b/test/fixtures/define-global.js
@@ -0,0 +1 @@
+global.a = 'test';