Skip to content

Commit

Permalink
Fix bug when Array prototype contains additional methods
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Leyba <jmleyba@gmail.com>
  • Loading branch information
BohdanTkachenko authored and jleyba committed Jun 28, 2016
1 parent 182b466 commit 942d6d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions javascript/node/selenium-webdriver/net/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ function getAddress(loopback, opt_family) {
}
interfaces = interfaces || os.networkInterfaces();
for (var key in interfaces) {
if (!interfaces.hasOwnProperty(key)) {
continue;
}

interfaces[key].forEach(function(ipAddress) {
if (ipAddress.family === family &&
ipAddress.internal === loopback) {
Expand Down

0 comments on commit 942d6d2

Please sign in to comment.