From b8c8e9c113e4611560948420e1ad67f1ee13d975 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 4 Aug 2011 21:04:54 +0200 Subject: [PATCH] net_uv: add listenFD shim that throws when called --- lib/net_uv.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/net_uv.js b/lib/net_uv.js index 193646e41a..80d709fa4d 100644 --- a/lib/net_uv.js +++ b/lib/net_uv.js @@ -680,6 +680,11 @@ Server.prototype._emitCloseIfDrained = function() { } }; +// TODO: implement for compatibility with 0.4.x? Requires libuv API change. +Server.prototype.listenFD = function(fd, type) { + throw new Error('Not implemented'); +}; + // TODO: isIP should be moved to the DNS code. Putting it here now because // this is what the legacy system did.