aboutsummaryrefslogtreecommitdiff
path: root/lib/dgram.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dgram.js')
-rw-r--r--lib/dgram.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dgram.js b/lib/dgram.js
index cc2d11b81e..94e3a9b38e 100644
--- a/lib/dgram.js
+++ b/lib/dgram.js
@@ -63,7 +63,7 @@ function newHandle(type, lookup) {
if (lookup === undefined)
lookup = dns.lookup;
else if (typeof lookup !== 'function')
- throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'lookup', 'function');
+ throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'lookup', 'Function');
if (type === 'udp4') {
const handle = new UDP();