mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
fs.closeSync should return Undefined on success
This commit is contained in:
@@ -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