From 6a3dbdacd6cf67f643dee219fd782a193ddd2534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 12 Aug 2016 23:48:37 +0100 Subject: [PATCH] udp: remove ancient check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/8088 Reviewed-By: Anna Henningsen Reviewed-By: bnoordhuis - Ben Noordhuis Reviewed-By: Brian White Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Rich Trott Reviewed-By: Minwoo Jung --- lib/dgram.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/dgram.js b/lib/dgram.js index c088bffa7ff477..9037666d174642 100644 --- a/lib/dgram.js +++ b/lib/dgram.js @@ -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'); }