We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
kEmptyObject
1 parent 2ffd541 commit b468b8fCopy full SHA for b468b8f
lib/https.js
@@ -34,7 +34,11 @@ const {
34
ReflectConstruct,
35
} = primordials;
36
37
-require('internal/util').assertCrypto();
+const {
38
+ assertCrypto,
39
+ kEmptyObject,
40
+} = require('internal/util');
41
+assertCrypto();
42
43
const tls = require('tls');
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) {
214
let name = FunctionPrototypeCall(HttpAgent.prototype.getName, this, options);
215
216
name += ':';
0 commit comments