Skip to content

Commit 662fdfe

Browse files
committed
fs.closeSync should return Undefined on success
1 parent 3751313 commit 662fdfe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/node_file.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ static Handle<Value> Close(const Arguments& args) {
163163
} else {
164164
int ret = close(fd);
165165
if (ret != 0) return ThrowException(errno_exception(errno));
166+
return Undefined();
166167
}
167168
}
168169

0 commit comments

Comments
 (0)