Skip to content

Commit

Permalink
s/posix/fs/g
Browse files Browse the repository at this point in the history
  • Loading branch information
smith committed Feb 13, 2010
1 parent 0959869 commit a8633b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/jsgi-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ require("jsgi-node").start(function(request){
This adapter should conform to the JSGI 0.3 (with promises) for full
asynchronous support. For example:
var posix = require("posix");
var fs = require("fs");
require("jsgi-node").start(function(request){
var promise = new process.Promise();
posix.cat("jsgi-node.js").addCallback(function(body){
fs.cat("jsgi-node.js").addCallback(function(body){
promise.emitSuccess({
status: 200,
headers: {},
Expand Down Expand Up @@ -210,4 +210,4 @@ if ( typeof process.Promise.prototype.then !== "function" ) {
this.addErrback( error );
return this;
};
}
}

0 comments on commit a8633b1

Please sign in to comment.