Skip to content

Commit 0e071c3

Browse files
BohdanTkachenkojleyba
authored andcommitted
Fix bug when Array prototype contains additional methods
Signed-off-by: Jason Leyba <[email protected]>
1 parent a368fca commit 0e071c3

File tree

1 file changed

+4
-0
lines changed
  • javascript/node/selenium-webdriver/net

1 file changed

+4
-0
lines changed

javascript/node/selenium-webdriver/net/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ function getAddress(loopback, opt_family) {
4848
}
4949
interfaces = interfaces || os.networkInterfaces();
5050
for (var key in interfaces) {
51+
if (!interfaces.hasOwnProperty(key)) {
52+
continue;
53+
}
54+
5155
interfaces[key].forEach(function(ipAddress) {
5256
if (ipAddress.family === family &&
5357
ipAddress.internal === loopback) {

0 commit comments

Comments
 (0)