Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

posix module not included - could not start server - error on line 73…

… of fu.js (process.cat)
  • Loading branch information...
commit 6c4ef861dd05e9eca7bf85eb30c6d6599fb5b9fb 1 parent bba52dd
Mark Muskardin authored ry committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  fu.js
View
3  fu.js
@@ -1,4 +1,5 @@
var createServer = require("http").createServer;
+var process = require("posix");
var sys = require("sys");
DEBUG = false;
@@ -69,7 +70,7 @@ fu.staticHandler = function (filename) {
}
sys.puts("loading " + filename + "...");
- var promise = process.fs.cat(filename, encoding);
+ var promise = process.cat(filename, encoding);
promise.addCallback(function (data) {
body = data;
Please sign in to comment.
Something went wrong with that request. Please try again.