summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-11-01 14:56:21 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-11-01 14:56:21 -0700
commitf1391f33cd8795fc35935136a53a1c3089453171 (patch)
tree358734a1252644a2753353334835fdd967e1ce60 /lib
parentea78d995e06c3cd9037021d0deb59b1688548b83 (diff)
downloadnodejs-f1391f33cd8795fc35935136a53a1c3089453171.tar.gz
nodejs-f1391f33cd8795fc35935136a53a1c3089453171.tar.bz2
nodejs-f1391f33cd8795fc35935136a53a1c3089453171.zip
Add missing require('fs')
Diffstat (limited to 'lib')
-rw-r--r--lib/net.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net.js b/lib/net.js
index 88e1925cc..65a8c5e55 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);
});