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