This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

fs.closeSync should return Undefined on success

  • Loading branch information...
ry committed Feb 20, 2010
1 parent 3751313 commit 662fdfed378db3fde5de4fde09e8a8bfbebcac4d
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/node_file.cc
View
@@ -163,6 +163,7 @@ static Handle<Value> Close(const Arguments& args) {
} else {
int ret = close(fd);
if (ret != 0) return ThrowException(errno_exception(errno));
+ return Undefined();
}
}

0 comments on commit 662fdfe

Please sign in to comment.