mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
fs.closeSync should return Undefined on success
This commit is contained in:
1 parent
375131376f
commit
662fdfed37
1 file changed
+1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user