Skip to content

Commit 7e79b79

Browse files
committed
fixing the changes for older versions of Node
1 parent bd61046 commit 7e79b79

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ function HttpsProxyAgent(opts) {
3535
var proxy;
3636

3737
// If the opts are genearted with the WHATWG API
38-
if (opts && Object.getOwnPropertySymbols(opts)[0]) {
38+
if (opts && Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(opts)[0]) {
3939
proxy = {};
40-
let urlContext = opts[Object.getOwnPropertySymbols(opts)[0]];
41-
for (let key of Object.keys(urlContext)) {
40+
var urlContext = opts[Object.getOwnPropertySymbols(opts)[0]];
41+
for (var key of Object.keys(urlContext)) {
4242
proxy[key] = urlContext[key];
4343
}
4444
proxy.protocol = proxy.scheme;

0 commit comments

Comments
 (0)