From 489287f30912e9cc4c95aa1ceea80ee06883608d 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. --- 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; };