Skip to content

Commit 02f2ebd

Browse files
TrottMyles Borins
authored andcommitted
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: #6026 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 1c40079 commit 02f2ebd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var moduleFilename = require('path').join(common.fixturesDir, 'a');
2424
console.error('repl test');
2525

2626
// function for REPL to run
27-
invoke_me = function(arg) {
27+
global.invoke_me = function(arg) {
2828
return 'invoked ' + arg;
2929
};
3030

0 commit comments

Comments
 (0)