From 5a40d2e6cbe476a260ca80d3f484118fd11bbdcc Mon Sep 17 00:00:00 2001
From: Antoine du Hamel <duhamelantoine1995@gmail.com>
Date: Thu, 15 Sep 2022 00:24:28 +0200
Subject: [PATCH] test: fix `test-repl` not validating leaked globals properly

PR-URL: https://github.com/nodejs/node/pull/44640
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
---
 test/parallel/test-repl.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js
index b70fce93ba7c49..3eb5d255927421 100644
--- a/test/parallel/test-repl.js
+++ b/test/parallel/test-repl.js
@@ -840,7 +840,8 @@ const tcpTests = [
 
     socket.end();
   }
-  common.allowGlobals(...Object.values(global));
+  common.allowGlobals(global.invoke_me, global.message, global.a, global.blah,
+                      global.I, global.f, global.path, global.x, global.name, global.foo);
 })().then(common.mustCall());
 
 function startTCPRepl() {