udp: remove ancient check

PR-URL: https://github.com/nodejs/node/pull/8088
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
This commit is contained in:
Saúl Ibarra Corretgé 2016-08-12 23:48:37 +01:00
parent 3dfcb2e266
commit 6a3dbdacd6

View File

@ -53,9 +53,6 @@ function newHandle(type) {
return handle;
}
if (type == 'unix_dgram')
throw new Error('"unix_dgram" type sockets are not supported any more');
throw new Error('Bad socket type specified. Valid types are: udp4, udp6');
}