diff --git a/src/node_file.cc b/src/node_file.cc index adc0057dd..fa33a243d 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -163,6 +163,7 @@ static Handle Close(const Arguments& args) { } else { int ret = close(fd); if (ret != 0) return ThrowException(errno_exception(errno)); + return Undefined(); } }