| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,7 +34,11 @@ const { | |||
| 34 | 34 | ReflectConstruct, | |
| 35 | 35 | } = primordials; | |
| 36 | 36 | ||
| 37 | - require('internal/util').assertCrypto(); | ||
| 37 | + const { | ||
| 38 | + assertCrypto, | ||
| 39 | + kEmptyObject, | ||
| 40 | + } = require('internal/util'); | ||
| 41 | + assertCrypto(); | ||
| 38 | 42 | ||
| 39 | 43 | const tls = require('tls'); | |
| 40 | 44 | const { Agent: HttpAgent } = require('_http_agent'); | |
@@ -206,7 +210,7 @@ Agent.prototype.createConnection = createConnection; | |||
| 206 | 210 | * }} [options] | |
| 207 | 211 | * @returns {string} | |
| 208 | 212 | */ | |
| 209 | - Agent.prototype.getName = function getName(options = {}) { | ||
| 213 | + Agent.prototype.getName = function getName(options = kEmptyObject) { | ||
| 210 | 214 | let name = FunctionPrototypeCall(HttpAgent.prototype.getName, this, options); | |
| 211 | 215 | ||
| 212 | 216 | name += ':'; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments