fs.closeSync should return Undefined on success

This commit is contained in:
Ryan Dahl
2010-02-19 16:02:14 -08:00
parent 375131376f
commit 662fdfed37

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();
}
}