| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -273,8 +273,10 @@ struct fs_req_wrap { | |||
| 273 | 273 | uv_req->result = err; \ | |
| 274 | 274 | uv_req->path = nullptr; \ | |
| 275 | 275 | After(uv_req); \ | |
| 276 | - } \ | ||
| 277 | - args.GetReturnValue().Set(req_wrap->persistent()); | ||
| 276 | + req_wrap = nullptr; \ | ||
| 277 | + } else { \ | ||
| 278 | + args.GetReturnValue().Set(req_wrap->persistent()); \ | ||
| 279 | + } | ||
| 278 | 280 | ||
| 279 | 281 | #define ASYNC_CALL(func, req, ...) \ | |
| 280 | 282 | ASYNC_DEST_CALL(func, req, nullptr, __VA_ARGS__) \ | |
@@ -1028,6 +1030,7 @@ static void WriteString(const FunctionCallbackInfo<Value>& args) { | |||
| 1028 | 1030 | uv_req->result = err; | |
| 1029 | 1031 | uv_req->path = nullptr; | |
| 1030 | 1032 | After(uv_req); | |
| 1033 | + return; | ||
| 1031 | 1034 | } | |
| 1032 | 1035 | ||
| 1033 | 1036 | return args.GetReturnValue().Set(req_wrap->persistent()); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments