summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-client-agent.js
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2020-12-06 14:52:08 +0100
committerMichaël Zasso <targos@protonmail.com>2020-12-13 22:16:18 +0100
commit2ef9a76ece1e403d1dd7019fceb8f258607e7a69 (patch)
tree48f8fb044729f5fa4cb535aa4182d5c059a55654 /test/parallel/test-http-client-agent.js
parentc6c83374028c44d280dd7eaa767348eaee3b9502 (diff)
downloadnode-new-2ef9a76ece1e403d1dd7019fceb8f258607e7a69.tar.gz
http: use objects with null prototype in Agent
Fixes: https://github.com/nodejs/node/issues/36364 PR-URL: https://github.com/nodejs/node/pull/36409 Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/parallel/test-http-client-agent.js')
-rw-r--r--test/parallel/test-http-client-agent.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http-client-agent.js b/test/parallel/test-http-client-agent.js
index 3ae906f09c..77616edd99 100644
--- a/test/parallel/test-http-client-agent.js
+++ b/test/parallel/test-http-client-agent.js
@@ -46,8 +46,8 @@ server.listen(0, common.mustCall(() => {
}));
const countdown = new Countdown(max, () => {
- assert(!http.globalAgent.sockets.hasOwnProperty(name));
- assert(!http.globalAgent.requests.hasOwnProperty(name));
+ assert(!(name in http.globalAgent.sockets));
+ assert(!(name in http.globalAgent.requests));
server.close();
});