From 02f2ebd9b49a8017b5e579bd86d6108ba2c6d786 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 2 Apr 2016 23:20:12 -0700 Subject: [PATCH] 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 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/parallel/test-repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js index 2fa20eb75fd855..02ce8169caf3fe 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; };