diff options
author | Michaël Zasso <targos@protonmail.com> | 2019-11-27 19:59:29 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-11-30 13:45:38 +0100 |
commit | 1f9a5ae7aadd073ac61933226687a4483f8eccf4 (patch) | |
tree | 2d07023ce21a0aa0339344ea513bce8490c27757 /lib/_http_client.js | |
parent | 7fc5980cfe79c9b7ff19837397823a583c9fd8fe (diff) | |
download | android-node-v8-1f9a5ae7aadd073ac61933226687a4483f8eccf4.tar.gz android-node-v8-1f9a5ae7aadd073ac61933226687a4483f8eccf4.tar.bz2 android-node-v8-1f9a5ae7aadd073ac61933226687a4483f8eccf4.zip |
lib: use static Number properties from primordials
PR-URL: https://github.com/nodejs/node/pull/30686
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'lib/_http_client.js')
-rw-r--r-- | lib/_http_client.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/_http_client.js b/lib/_http_client.js index 249a6d6028..6d8cb8fc8e 100644 --- a/lib/_http_client.js +++ b/lib/_http_client.js @@ -24,6 +24,7 @@ const { ArrayIsArray, Boolean, + NumberIsFinite, ObjectAssign, ObjectKeys, ObjectSetPrototypeOf, @@ -210,7 +211,7 @@ function ClientRequest(input, options, cb) { // but only if the Agent will actually reuse the connection! // If it's not a keepAlive agent, and the maxSockets==Infinity, then // there's never a case where this socket will actually be reused - if (!this.agent.keepAlive && !Number.isFinite(this.agent.maxSockets)) { + if (!this.agent.keepAlive && !NumberIsFinite(this.agent.maxSockets)) { this._last = true; this.shouldKeepAlive = false; } else { |