summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-04-02 23:20:12 -0700
committerJames M Snell <jasnell@gmail.com>2016-04-04 14:47:14 -0700
commit3df16b1dc8dfe2022cd7e64e532a2afa10716645 (patch)
treea85b8d7a19653d96c0c0c1f0210e898392d93fa6 /test
parent3072546feb9d7f78f12d75bec28ef00e5958f7be (diff)
downloadandroid-node-v8-3df16b1dc8dfe2022cd7e64e532a2afa10716645.tar.gz
android-node-v8-3df16b1dc8dfe2022cd7e64e532a2afa10716645.tar.bz2
android-node-v8-3df16b1dc8dfe2022cd7e64e532a2afa10716645.zip
test: explicitly set global in test-repl
The test intentionally assigns a global. Use `global` namespace to make it clear that it is intentional and not an accidental leak. PR-URL: https://github.com/nodejs/node/pull/6026 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-repl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js
index 2fa20eb75f..02ce8169ca 100644
--- a/test/parallel/test-repl.js
+++ b/test/parallel/test-repl.js
@@ -24,7 +24,7 @@ var moduleFilename = require('path').join(common.fixturesDir, 'a');
console.error('repl test');
// function for REPL to run
-invoke_me = function(arg) {
+global.invoke_me = function(arg) {
return 'invoked ' + arg;
};