File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Open diff view settings
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Open diff view settings
Original file line number Diff line number Diff line change @@ -34,7 +34,11 @@ const {
3434 ReflectConstruct,
3535} = primordials ;
3636
37- require ( 'internal/util' ) . assertCrypto ( ) ;
37+ const {
38+ assertCrypto,
39+ kEmptyObject,
40+ } = require ( 'internal/util' ) ;
41+ assertCrypto ( ) ;
3842
3943const tls = require ( 'tls' ) ;
4044const { Agent : HttpAgent } = require ( '_http_agent' ) ;
@@ -206,7 +210,7 @@ Agent.prototype.createConnection = createConnection;
206210 * }} [options]
207211 * @returns {string }
208212 */
209- Agent . prototype . getName = function getName ( options = { } ) {
213+ Agent . prototype . getName = function getName ( options = kEmptyObject ) {
210214 let name = FunctionPrototypeCall ( HttpAgent . prototype . getName , this , options ) ;
211215
212216 name += ':' ;
You can’t perform that action at this time.
0 commit comments