From ac40a4510d19b4982399c3e19d8a28a1a7c28a48 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 dcafb9973e1978..33530cf1058b0f 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; };