diff --git a/lib/net.js b/lib/net.js index 88e1925ccc3..65a8c5e55c8 100644 --- a/lib/net.js +++ b/lib/net.js @@ -1094,7 +1094,7 @@ Server.prototype.listen = function () { if (!r.isSocket()) { throw new Error("Non-socket exists at " + path); } else { - fs.unlink(path, function (err) { + require('fs').unlink(path, function (err) { if (err) throw err; self._doListen(path); });