8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af24376 commit 2314378Copy full SHA for 2314378
src/node_file.cc
@@ -273,8 +273,10 @@ struct fs_req_wrap {
273
uv_req->result = err; \
274
uv_req->path = nullptr; \
275
After(uv_req); \
276
- } \
277
- args.GetReturnValue().Set(req_wrap->persistent());
+ req_wrap = nullptr; \
+ } else { \
278
+ args.GetReturnValue().Set(req_wrap->persistent()); \
279
+ }
280
281
#define ASYNC_CALL(func, req, ...) \
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;
1032
After(uv_req);
1033
+ return;
1034
}
1035
1036
return args.GetReturnValue().Set(req_wrap->persistent());
0 commit comments