From f1391f33cd8795fc35935136a53a1c3089453171 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 1 Nov 2010 14:56:21 -0700 Subject: [PATCH] Add missing require('fs') --- lib/net.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });