Skip to content

Commit 8e6f28b

Browse files
committed
lib: even better node 6 support
1 parent 088c9e5 commit 8e6f28b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ip.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ ip.subnet = function (addr, mask) {
201201
}
202202
}
203203

204-
var numberOfAddresses = 2 ** (32 - maskLength);
204+
var numberOfAddresses = Math.pow(2, 32 - maskLength);
205205

206206
return {
207207
networkAddress: ip.fromLong(networkAddress),

0 commit comments

Comments
 (0)