Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! src: throw error in LoadBuiltinModuleSource when reading fails
  • Loading branch information
joyeecheung committed Jun 8, 2021
commit 99c5292d2d7ef478d6a280fdda8f26dd44f3cb0d
1 change: 1 addition & 0 deletions src/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ int ReadFileSync(std::string* result, const char* path) {
const int r =
uv_fs_read(nullptr, &req, file, &buf, 1, result->length(), nullptr);
if (req.result < 0) {
uv_fs_req_cleanup(&req);
return req.result;
Comment thread
joyeecheung marked this conversation as resolved.
}
uv_fs_req_cleanup(&req);
Expand Down