There was an error while loading. Please reload this page.
1 parent 98b2256 commit bd61046Copy full SHA for bd61046
1 file changed
index.js
@@ -35,7 +35,7 @@ function HttpsProxyAgent(opts) {
35
var proxy;
36
37
// If the opts are genearted with the WHATWG API
38
- if (Object.getOwnPropertySymbols(opts)[0]) {
+ if (opts && Object.getOwnPropertySymbols(opts)[0]) {
39
proxy = {};
40
let urlContext = opts[Object.getOwnPropertySymbols(opts)[0]];
41
for (let key of Object.keys(urlContext)) {
0 commit comments