diff --git a/lib/utils/ip.js b/lib/utils/ip.js index 05e67727..b332ef69 100644 --- a/lib/utils/ip.js +++ b/lib/utils/ip.js @@ -443,7 +443,7 @@ IP.toString = function toString(raw) { return host; } - throw Error('Invalid IP address: ' + raw.toString('hex')); + throw new Error('Invalid IP address: ' + raw.toString('hex')); }; /**