Skip to content

Commit bd61046

Browse files
committed
small fix
1 parent 98b2256 commit bd61046

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function HttpsProxyAgent(opts) {
3535
var proxy;
3636

3737
// If the opts are genearted with the WHATWG API
38-
if (Object.getOwnPropertySymbols(opts)[0]) {
38+
if (opts && Object.getOwnPropertySymbols(opts)[0]) {
3939
proxy = {};
4040
let urlContext = opts[Object.getOwnPropertySymbols(opts)[0]];
4141
for (let key of Object.keys(urlContext)) {

0 commit comments

Comments
 (0)