fs.closeSync should return Undefined on success

This commit is contained in:
Ryan Dahl committed 2010-02-19 16:02:14 -08:00
1 parent 375131376f
commit 662fdfed37
1 file changed
+1
+1
View File
@@ -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();
}
}