Browse files

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

… of fu.js (process.cat)
  • Loading branch information...
1 parent bba52dd commit 6c4ef861dd05e9eca7bf85eb30c6d6599fb5b9fb Mark Muskardin committed with ry Dec 13, 2009
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;

0 comments on commit 6c4ef86

Please sign in to comment.